RegenerateLods class final

Forces every one of id's own cached LOD meshes to regenerate on the next ask, whatever ModelObject.version currently says — for after a change to the simplification algorithm itself, which a version bump alone already covers for the ordinary case of an edited base mesh.

Touches nothing about the object beyond its own version. The ratios and thresholds a project actually holds are unaffected — this is not "throw the LODs away and start over" — since a version bump is all a pure command over ModelProject can offer: the meshes themselves live in LodMeshCache, a stateful cache this command has no handle to, the same separation ReadinessCache and ModifierEvaluationCache already keep from the commands that might make their own answers stale.

Inheritance

Constructors

RegenerateLods(int id)
const

Properties

arguments → Map<String, Object?>
The arguments, as the journal and an agent see them.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
hints → Map<String, ParamHint>
What a control for one of arguments should look like, keyed the same way — a step, a range, a unit, or which of the four kinds it even is.
no setterinherited
id → int
final
isJournaled → bool
Whether a successful run of this should be written to whichever CommandJournal a ModelHistory has attached, when one is. True for every command except ReplaceDocument — see that class's own doc comment for why a line naming it could never be read back.
no setterinherited
name → String
The name this is written down and looked up under. Stable: it is in files and in an agent's tool table, and renaming one breaks both.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
says → String
What the history offers to undo, in words a person recognises. Present tense and lower case — the interface puts it after "Undo".
no setteroverride

Methods

apply(ModelProject project, ProjectSelection selection) → Outcome
Applies this to project, with selection as it was when the command was made.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
inherited
toString() → String
A string representation of this object.
inherited

Operators

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