Click or drag to resize

IMesh Interface

Triangle mesh interface.

Namespace:  Karamba.Geometry
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 2.2.0.4 (2.2.0.4)
Syntax
public interface IMesh : IReadonlyMesh, ISerializable

The IMesh type exposes the following members.

Properties
  NameDescription
Public propertyContainsQuads
Gets a value indicating whether the mesh contains quads.
Public propertyFaces
Gets the mesh faces.
(Inherited from IReadonlyMesh.)
Public propertyIsValid
Gets a value indicating whether the mesh is valid.
Public propertyNormals
Gets the vertex normals.
(Inherited from IReadonlyMesh.)
Public propertyVertexColors
Gets the mesh vertex colors.
(Inherited from IReadonlyMesh.)
Public propertyVertices
Gets the mesh vertices.
(Inherited from IReadonlyMesh.)
Top
Methods
  NameDescription
Public methodAddFace(Face3)
Add triangle to mesh.
Public methodAddFace(Int32, Int32, Int32)
Add triangle to mesh.
Public methodAddFace(Int32, Int32, Int32, Int32)
Add a quad to mesh.
Public methodAddVertex(Point3)
Add vertex to mesh.
Public methodAddVertex(Double, Double, Double)
Add vertex to mesh.
Public methodAddVertexColor
Add vertex color.
Public methodcharacteristicFaceSize
determine the characteristic mesh face size.
Public methodCleaned
Create a new mesh based on another mesh doing a sanity check and removing faces with a smaller area than lim_area.
Public methodClearVertexColors
Clear vertex colors.
Public methodClosestMeshPoint
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.
Public methodComputeNormals
compute the normals of all faces.
Public methodComputeVertexNormals
Compute vertex normals.
Public methodCopy
Returns a copy of the mesh.
(Inherited from IReadonlyMesh.)
Public methoddoubleFaceArea
determine the raw face normal whose length is double the area of the mesh face.
Public methodDuplicateMesh
Make a deep copy of the mesh.
Public methodfaceArea(Int32, Vector3)
determine the area of a mesh face.
Public methodfaceArea(Face3, Vector3)
determine the area of a mesh face.
Public methodfaceCOG
determine the center of gravity of a mesh face.
Public methodfaceNormal
Calculates the normal of the face.
Public methodFlip
Reverses the direction of the mesh.
Public methodGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
(Inherited from ISerializable.)
Public methodGetVertex
Gets the vertex at index.
(Inherited from IReadonlyMesh.)
Public methodNakedEdges
Returns the outline edges of the mesh.
Public methodSetVertex(Int32, Point3)
Set mesh vertex at index.
Public methodSetVertex(Int32, Double, Double, Double)
Set mesh vertex at index.
Public methodTriangulated
Triangulate mesh.
Top
Extension Methods
  NameDescription
Public Extension MethodConvert
Converts to Rhino's Mesh. If the mesh is already of type RhinoMesh, the underlying mesh Mesh is returned without creating a copy of it. Otherwise, a new rhino mesh instance is created from the supplied mesh.
(Defined by ToRhino.)
Top
See Also