Provides script language access to C++ objects of this type.
Function members are as follows:
Return Type | Function Name | Documentation |
---|---|---|
int32 | EdgeCount | Returns the number of edges in the <Mesh>. |
int32 | FaceCount | Returns the number of faces in the <Mesh>. |
int32 | GetFaceExtent | Populates two <Vec> objects with the minimum and maximum extent of a face in a <Mesh>. |
int32 | GetMaterials | Populates a <NodeBuffer> with all the <Material> nodes stored by the <Mesh> objects <MaterialPaletteNode>, including <Material> nodes implemented by <NodeLink> nodes. |
float64 | GetMemoryFootprint | Returns the total number of bytes required by the <Mesh>. |
int32 | GetPrograms | Populates a <NodeBuffer> with all the <Program> nodes referenced by all the <Material> nodes in the <Mesh> object's <MaterialPaletteNode>, whether or not the <Program> nodes or <Material> nodes are implemented by <NodeLink> nodes. |
int32 | GetResources | Populates a <NodeBuffer> object with all the Textures, <VariableNode> objects, and <Program> nodes to which any <Material> node in the <Mesh> object's <MaterialPaletteNode> is connected. |
int32 | GetTextures | Populates a <NodeBuffer> object with the <Texture> nodes to which the <Material> node in the <Mesh> object's <MaterialPaletteNode> is connected. |
int32 | GetUniforms | Populates a <NodeBuffer> object with the <VariableNode> objects to which the any <Material> node in the <Mesh> object's <MaterialPaletteNode> is connected. |
int32 | GetVertexMax | Returns the maximum extent of the <Mesh>. |
int32 | GetVertexMin | Returns the minimum extent of the <Mesh>. |
int32 | MergePalette | Merges the palette of p_oSourceNode with a <Mesh>. The p_oSourceNode object must be either be derived from Path or <Mesh>, or be a <NodeLink> pointing at a Path or <Mesh>, or this function will fail. If Database is a valid <EditModel3D> object, or the <Mesh> is connected to a valid <EditModel3D> object, an editing action will be used to combine the palettes. Otherwise the palettes will be combined directly and the result cannot be undone by the user. |
int32 | VertexCount | Returns the number of vertices in the <Mesh>. |
Object members are as follows:
Type Name | Accessor Name | Documentation |
---|---|---|
int32 | DisplayEdges | Gets or sets whether or not the <Mesh> renders edges. |
int32 | DisplayFaceNormals | Gets or sets whether or not the <Mesh> renders face normals. |
int32 | DisplayHiddenEdges | Gets or sets whether or not the <Mesh> renders hidden edges. |
int32 | DisplayVertexNormals | Gets or sets whether or not the <Mesh> renders vertex normals. |
int32 | DisplayVertices | Gets or sets whether or not the <Mesh> renders vertices. |
<Group> | Materials | Gets or sets a <Mesh> node's palette group. |
<Node> | MaterialsLink | Gets or sets the <NodeLink> pointing at the <Mesh> node's palette group. |
<Group> | PaletteGroup | Gets or sets a <Mesh> node object's palette <Group>. |
<Node> | PaletteLink | Gets or sets the <NodeLink> pointing at the <Mesh> node object's palette <Group>. |
<Node> | RenderHook | Gets or sets the <Mesh> node object's RenderHook parameter. The render hook executes after the <Material> activates its state, and supports initializing additional render state such as shader constants. |
<Node> | RenderHookLink | Gets or sets the <Mesh> node object's RenderHookLink parameter. This allows accessing or assigning a <NodeLink> for the render hook. |