public static class BlockoutCreateDoc 24's Creation table: what makes geometry, rather than what changes it.
Remarks
The shape tool, the poly shape, and duplicate, mirror and array. Everything here produces an entity or entities; nothing here needs an element selection, which is why it is a separate type from BlockoutGeometry and why its commands are reachable in Object mode.
⚠ A created shape keeps its parameters, and that is the whole of D6's first half. A corridor that should be a metre wider is Resize — one number, one undo entry — rather than a face selection and a drag. The door closes the first time somebody edits a face of it; see MeshEdit.Demote.
⚠ Sizes are in world units and the transform stays uniform. A shape carries its own extent — see Size — so nothing here ever writes a non-uniform scale, which is what keeps a later bevel the same width on every axis and a later projection unstretched.
Methods (8)
public static Entity Shape(SceneDocument document, ShapeParameters parameters, Vector3 at = default(Vector3), Entity parent = default(Entity))Creates a shape with live parameters, undoably.
public static Entity Shape(SceneDocument document, ShapeKind kind, Vector3 at = default(Vector3), Entity parent = default(Entity))Creates a shape of a kind at its default size.
public static bool Resize(SceneDocument document, Entity entity, ShapeParameters parameters)Changes a shape's live parameters, undoably.
public static Entity Poly(SceneDocument document, IReadOnlyList<Vector2> footprint, float height, WorkPlane? plane = null, string name = "Room")Pulls a polygon clicked on the work plane up into a solid.
public static int Duplicate(SceneDocument document, Vector3 offset = default(Vector3), List<Entity>? into = null)Copies the selected entities, undoably.
public static int Mirror(SceneDocument document, Plane plane, bool copy = true)Copies the selected entities and reflects the copies across a plane.
public static int Array(SceneDocument document, Entity entity, Vector3 step, int count, List<Entity>? into = null)Copies an entity along a line, undoably.
public static int Radial(SceneDocument document, Entity entity, Vector3 centre, Vector3 axis, int count, float sweep = 0, List<Entity>? into = null)Copies an entity round a circle, undoably.
Used by (7)
- BlockoutBooleanTestsVixen.Editor.Blockout.Tests
- BlockoutCreateTestsVixen.Editor.Blockout.Tests
- BlockoutCubeGridVixen.Editor.Blockout
- BlockoutHistoryTestsVixen.Editor.Blockout.Tests
- BlockoutModeVixen.Editor.Blockout
- BlockoutSurfaceTestsVixen.Editor.Blockout.Tests
- ShapeDragVixen.Editor.Blockout