Api Editor MeshEditor PrimitiveBuilder
class

PrimitiveBuilder

public abstract class PrimitiveBuilder

Build primitives out of polygons.

Properties

Name Type Description
Is2D virtual Boolean If this primitive is 2D the bounds box will be limited to have no depth.
Material Material The material to use for this whole primitive.

Methods

virtual Void Build(PolygonMesh mesh)

Create the primitive in the mesh.

virtual Void SetFromBox(BBox box)

Setup properties from box.

Assembly: Sandbox.Tools Namespace: Editor.MeshEditor Full Name: Editor.MeshEditor.PrimitiveBuilder