API ReferenceEditor.MeshEditor

PrimitiveBuilderclass

Build primitives out of polygons.

objectPrimitiveBuilder
Namespace
Editor.MeshEditor
Assembly
Sandbox.Tools
Declaration
public abstract class Editor.MeshEditor.PrimitiveBuilder

Constructors1

Showing 1 constructors

Methods2

Showing 2 methods

public virtual void Build(Editor.MeshEditor.PrimitiveBuilder.PolygonMesh mesh)PUBLICVIRTUAL

Create the primitive in the mesh.

ParameterTypeDescription
meshPolygonMesh
Returns:void

public virtual void SetFromBox(BBox box)PUBLICVIRTUAL

Setup properties from box.

ParameterTypeDescription
boxBBox
Returns:void

Properties2

Showing 2 properties

public virtual bool Editor.MeshEditor.PrimitiveBuilder.Is2D { get; set; }PUBLICVIRTUALGETSET

If this primitive is 2D the bounds box will be limited to have no depth.

Returns:bool

public Sandbox.Material Editor.MeshEditor.PrimitiveBuilder.Material { get; set; }PUBLICGETSET

The material to use for this whole primitive. Loaded on demand so builders can be created without the render system.

Returns:Material

On this page