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

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

AssetMesh

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

AssetMesh

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

Properties

BoundingBox

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

Vertices

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

Methods

AppendToMesh

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

Transform

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

Translate

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

Write

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