AssetMesh

References
public sealed class AssetMesh
A minimal mesh type used for fully unwelded model shapes. This type only stores vertices and faces.

Constructors

AssetMesh

#
Deserialise a low poly mesh from a reader.
public AssetMesh()

AssetMesh

#
Create a new low-poly mesh from a Rhino mesh.
public AssetMesh(
mesh
)

AssetMesh

#
Create a low poly mesh from scratch.
public AssetMesh(
vertices,
faces
)

Properties

BoundingBox

#
Gets the boundingbox containing all vertices.
public BoundingBox BoundingBox { get; }

Vertices

#
Enumerate over the vertices of this mesh.
public IEnumerable<Point3f> Vertices { get; }

Methods

AppendToMesh

#
Append this mesh to an existing mesh. This method will append vertices, faces and colours, but it will not adjust normals.
public void AppendToMesh(
mesh,
Mesh to append to.
Color
colour
Mono colour to assign to all new vertices.
)

Transform

#
Create a new flat mesh part by transforming this part.
public AssetMesh Transform(
Transform
matrix
Linear transform to apply.
)
Modified mesh part.

Translate

#
Create a new flat mesh part by translating this part.
public AssetMesh Translate(
motion
Linear motion to apply.
)
Modified mesh part.

Write

#
Serialise this mesh to a writer.
public void Write()