Class MeshHelper
Helper methods for ICamApiMesh
Inherited Members
Namespace: CAMAPI.DotnetHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class MeshHelper
Methods
GetTriangle(ComWrapper<ICamApiMesh>, int)
Get triangle by index
Declaration
public static TST3IPoint GetTriangle(this ComWrapper<ICamApiMesh> meshCom, int i)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMesh> | meshCom | Mesh |
| int | i | Triangle index |
Returns
| Type | Description |
|---|---|
| TST3IPoint |
GetTriangleCount(ComWrapper<ICamApiMesh>)
Get total triangle count in the mesh
Declaration
public static int GetTriangleCount(this ComWrapper<ICamApiMesh> meshCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMesh> | meshCom | Mesh |
Returns
| Type | Description |
|---|---|
| int |
GetTriangleNormal(ComWrapper<ICamApiMesh>, int)
Get normal vector of triangle by index
Declaration
public static TST3DPoint GetTriangleNormal(this ComWrapper<ICamApiMesh> meshCom, int i)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMesh> | meshCom | Mesh |
| int | i | Triangle index |
Returns
| Type | Description |
|---|---|
| TST3DPoint |
GetVertex(ComWrapper<ICamApiMesh>, int)
Get vertex by index
Declaration
public static TST3DPoint GetVertex(this ComWrapper<ICamApiMesh> meshCom, int i)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMesh> | meshCom | Mesh |
| int | i | Vertex index |
Returns
| Type | Description |
|---|---|
| TST3DPoint |
GetVertexCount(ComWrapper<ICamApiMesh>)
Get total vertex count in the mesh
Declaration
public static int GetVertexCount(this ComWrapper<ICamApiMesh> meshCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMesh> | meshCom | Mesh |
Returns
| Type | Description |
|---|---|
| int |