IMesh Interface

Triangle mesh interface.

Definition

Namespace: Karamba.Geometry
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public interface IMesh : IReadonlyMesh, IEquatable<IReadonlyMesh>, 
	ISerializable
Implements
IReadonlyMesh, IEquatableIReadonlyMesh, ISerializable

Properties

ContainsQuads Gets a value indicating whether the mesh contains quads.
Faces Gets the mesh faces.
(Inherited from IReadonlyMesh)
Guid Gets the Guid of the mesh.
(Inherited from IReadonlyMesh)
IsValid Gets a value indicating whether the mesh is valid.
Normals Gets the vertex normals.
(Inherited from IReadonlyMesh)
UnderlyingBrep Gets the surface which underlies the given mesh or null.
(Inherited from IReadonlyMesh)
VertexColors Gets the mesh vertex colors.
(Inherited from IReadonlyMesh)
Vertices Gets the mesh vertices.
(Inherited from IReadonlyMesh)

Methods

AddFace(Face3) Add triangle to mesh.
AddFace(Int32, Int32, Int32) Add triangle to mesh.
AddFace(Int32, Int32, Int32, Int32) Add a quad to mesh.
AddVertex(Point3) Add vertex to mesh.
AddVertex(Double, Double, Double) Add vertex to mesh.
AddVertexColor Add vertex color.
characteristicFaceSize determine the characteristic mesh face size.
Cleaned Create a new mesh based on another mesh doing a sanity check and removing faces with a smaller area than lim_area.
ClearVertexColors Clear vertex colors.
ClosestMeshPoint Gets the point on the mesh that is closest to a given test point. Similar to the ClosestPoint function except this returns a MeshPoint class which includes extra information beyond just the location of the closest point.
ComputeNormals generate the normals of the vertices.
ComputeVertexNormals Compute vertex normals.
Copy Returns a copy of the mesh.
(Inherited from IReadonlyMesh)
doubleFaceArea determine the raw face normal whose length is double the area of the mesh face.
DuplicateMesh Make a deep copy of the mesh.
Equals Indicates whether the current object is equal to another object of the same type.
(Inherited from IEquatableIReadonlyMesh)
faceArea(Face3, Vector3) determine the area of a mesh face.
faceArea(Int32, Vector3) determine the area of a mesh face.
faceAreas determine the face areas of each face as normals.
faceCOG determine the center of gravity of a mesh face.
faceNormal Calculates the normal of the face.
Flip Reverses the direction of the mesh.
GetObjectData Populates a SerializationInfo with the data needed to serialize the target object.
(Inherited from ISerializable)
GetVertex Gets the vertex at index.
(Inherited from IReadonlyMesh)
NakedEdges Returns the outline edges of the mesh.
Partial returns a partial view of the mesh with only the mash faces visible whose indexes are given.
SetVertex(Int32, Point3) Set mesh vertex at index.
SetVertex(Int32, Double, Double, Double) Set mesh vertex at index.
Triangulated Triangulate mesh.
UpdatePosition Update the vertex positions according to the given list of points.

Extension Methods

Convert Converts to Rhino's Mesh. If the mesh is already of type [!:RhinoMesh], the underlying mesh [!:RhinoMesh.UnderlyingRhinoMesh] is returned without creating a copy of it. Otherwise, a new rhino mesh instance is created from the supplied mesh.
(Defined by ToRhino)
Convert Converts to Karamba's Mesh3.
(Defined by ToRhino)

See Also