Package dev.turboism.sdk.cubism.model
Interface Deformers
public interface Deformers
Deformers in one Cubism model.
-
Method Summary
Modifier and TypeMethodDescriptionall()default RotationDeformercreateRotation(String name, Part parent, int index) Creates a Rotation Deformer withnameunderparentatindex(negative = append;nullparent = model root).default WarpDeformercreateWarp(String name, Part parent, int index, int rows, int columns) Creates a Warp Deformer withnameandrows×columnsgrid underparentatindex(negative = append;nullparent = model root).find(DeformerId id) default voidDeletesdeformerthrough the native selection + native DELETE command path.
-
Method Details
-
all
-
find
- Throws:
NoSuchElementException- when the ID is absent
-
createWarp
Creates a Warp Deformer withnameandrows×columnsgrid underparentatindex(negative = append;nullparent = model root).The native two-phase flow is used: construct
CWarpDeformerSource→ set grid → add to the Deformer source set → attach to the Part tree, all admitted into one native Undo entry.- Throws:
IllegalArgumentException- whennameis blank or rows/columns are not positive
-
createRotation
Creates a Rotation Deformer withnameunderparentatindex(negative = append;nullparent = model root).- Throws:
IllegalArgumentException- whennameis blank
-
remove
Deletesdeformerthrough the native selection + native DELETE command path.
-