PaintMirror class final

Mirrors every vertex a stroke touched across a plane once the stroke itself is done — the same parameters mirrorWeights already takes, carried here as one value instead of four loose ones.

Constructors

PaintMirror({required int axis, required Map<int, int> jointMirror, double plane = 0.0, double tolerance = 1e-4})
const

Properties

axis → int
0=x, 1=y, 2=z — mirrorWeights' own convention.
final
hashCode → int
The hash code for this object.
no setterinherited
jointMirror → Map<int, int>
ModelObject.ids a mirrored vertex's joints are remapped through; an id absent here keeps its own joint, the same default mirrorWeights gives a spine or a head bone straddling the plane.
final
plane → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tolerance → double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson(Object? json) → PaintMirror?
A PaintMirror from its own toJson, or null when a field is missing or the wrong shape — MirrorJoints' own jointMirror reader, repeated here rather than shared, since the two commands' readers live in different switch shapes and neither is worth a third file just to hold one map decode.