IMesh Interface |
Namespace: Karamba.Geometry
The IMesh type exposes the following members.
Name | Description | |
---|---|---|
ContainsQuads |
returns true if the mesh contains quads
| |
Faces |
Get mesh faces.
(Inherited from IReadonlyMesh.) | |
IsValid |
True in case the mesh is valid
| |
Normals |
Get vertex normals.
(Inherited from IReadonlyMesh.) | |
VertexColors |
Get mesh vertex colors.
(Inherited from IReadonlyMesh.) | |
Vertices |
Get mesh vertices.
(Inherited from IReadonlyMesh.) |
Name | Description | |
---|---|---|
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 |
compute the normals of all faces
| |
ComputeVertexNormals |
Compute vertex normals.
| |
Copy |
return 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
| |
faceArea(Int32, Vector3) |
determine the area of a mesh face
| |
faceArea(Face3, Vector3) |
determine the area of a mesh face
| |
faceCOG |
determine the center of gravity of a mesh face
| |
faceNormal |
calculate the normal of the face.
| |
Flip | Reverses the direction of the mesh. | |
GetVertex |
Get vertex at index.
(Inherited from IReadonlyMesh.) | |
SetVertex(Int32, Point3) |
Set mesh vertex at index.
| |
SetVertex(Int32, Double, Double, Double) |
Set mesh vertex at index.
| |
Triangulated |
Triangulate mesh.
|
Name | Description | |
---|---|---|
Convert |
Convert to mesh to rhino 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.
The following attributes/properties are taken into account.
(1) Mesh topology (vertices, faces)
(2) Vertex normals.
(3) Vertex colors.
(Defined by MeshExtensions.) |