Public Member Functions | |
| HRESULT | Attach ([in] IRdMesh *pMesh) |
| HRESULT | Detach (void) |
| HRESULT | GetMesh ([out, retval] IRdMesh **ppMesh) |
| HRESULT | GetVertexNormals (IRdVertexNormalsStream **ppStream) |
| HRESULT | RecalculateNormals (void) |
| HRESULT | ApplyPlanarUVMapping ([in] IRdMatrixf *pTransf) |
| HRESULT | ApplyCylindricalUVMapping ([in] IRdMatrixf *pTransf) |
| HRESULT | ApplySphericalUVMapping ([in] IRdMatrixf *pTransf) |
| HRESULT | GetFacesUnities ([out, retval] IRdFaceUnityStream **ppOutStream) |
| HRESULT | GetSuperfacesUnities ([out, retval] IRdSuperfaceUnityStream **ppOutStream) |
| HRESULT | GetTrianglesNeighbors (IRdTriangleNeighboursStream **ppNeighbors) |
| HRESULT | CreateTriangleEdgesStream () |
| HRESULT | CreateFaceNormals () |
| HRESULT | CreateAutofacetFaceNormals (RtFloat angle) |
| HRESULT | GetVertexTopology (IRdVertexTopologyInfo **ppInfoStream, IRdVertexTopologyData **ppDataStream) |
| HRESULT | RebuildEdgeStream () |
| HRESULT | TopologySortTriangles () |
| HRESULT | GetMeshRayIntersection ([in] RtPoint *pPos,[in] RtVector3f *pRay,[out] RtUlong *pdwTriangle,[out] RtPoint *pptBarycentric,[out] RtPoint *pptPosition,[out] RtVector3f *pptNormal) |
| HRESULT | CreateVertexNormals () |
| HRESULT | CreateGeometryLookupStreams () |
| HRESULT | CreateGeometryIdentificationTable (IRdGeometryIdentificationTableStream **ppTable) |
| HRESULT | ContainsMeshObj (IRsNode *pNode) |
| HRESULT | GetEdgeNeighbors ([out, retval] IRdEdgeNeighborsStream **ppNeighbors) |
| HRESULT IRfMeshSet::Attach | ( | [in] IRdMesh * | pMesh | ) |
Attach mesh for changing.
| pMesh | [in] Mesh to be changed. |
| HRESULT IRfMeshSet::Detach | ( | void | ) |
Detach attached mesh.
| HRESULT IRfMeshSet::GetMesh | ( | [out, retval] IRdMesh ** | ppMesh | ) |
Return attached mesh.
standard HRESULT processing can be applied to returned value.
| HRESULT IRfMeshSet::GetVertexNormals | ( | IRdVertexNormalsStream ** | ppStream | ) |
Attach stream with calculated normals for vertices:
Creates:
standard HRESULT processing can be applied to returned value.
| HRESULT IRfMeshSet::RecalculateNormals | ( | void | ) |
Attach Recalculate face normals.
| HRESULT IRfMeshSet::ApplyPlanarUVMapping | ( | [in] IRdMatrixf * | pTransf | ) |
Apply planar mapping to mesh:
Creates:
| pTransf | [in] Transformation matrix that will be applied to mesh. |
| HRESULT IRfMeshSet::ApplyCylindricalUVMapping | ( | [in] IRdMatrixf * | pTransf | ) |
Apply Cylindrical mapping to mesh:
Creates:
| pTransf | [in] Transformation matrix that will be applied to mesh. |
| HRESULT IRfMeshSet::ApplySphericalUVMapping | ( | [in] IRdMatrixf * | pTransf | ) |
Apply spherical mapping to mesh:
Creates:
| pTransf | [in] Transformation matrix that will be applied to mesh. |
| HRESULT IRfMeshSet::GetFacesUnities | ( | [out, retval] IRdFaceUnityStream ** | ppOutStream | ) |
Create face unities stream that for each triangle specifies face index.
standard HRESULT processing can be applied to returned value.
| HRESULT IRfMeshSet::GetSuperfacesUnities | ( | [out, retval] IRdSuperfaceUnityStream ** | ppOutStream | ) |
Create super face unities stream:
standard HRESULT processing can be applied to returned value.
| HRESULT IRfMeshSet::GetTrianglesNeighbors | ( | IRdTriangleNeighboursStream ** | ppNeighbors | ) |
Creates stream containing three neighbours of each triangle:
Returns:
standard HRESULT processing can be applied to returned value.
| HRESULT IRfMeshSet::CreateTriangleEdgesStream | ( | ) |
Creates triangle edges stream from face unities and triangle neighbors streams.
Creates:
| HRESULT IRfMeshSet::CreateFaceNormals | ( | ) |
Creates face normals stream.
Creates:
| HRESULT IRfMeshSet::CreateAutofacetFaceNormals | ( | RtFloat | angle | ) |
Creates face normals streams for autofacet smoothing.
Creates:
| angle | [in] Smoothing angle in radians. |
| HRESULT IRfMeshSet::GetVertexTopology | ( | IRdVertexTopologyInfo ** | ppInfoStream, | |
| IRdVertexTopologyData ** | ppDataStream | |||
| ) |
Create streams with vertex topology information.
| ppInfoStream | [out] Returns read only vertex stream that specified index and count into data stream for each vertex. | |
| ppDataStream | [out] Returns read only stream with lists of triangles. |
| HRESULT IRfMeshSet::RebuildEdgeStream | ( | ) |
Rebuild edge flags stream from faces streams.
| HRESULT IRfMeshSet::TopologySortTriangles | ( | ) |
Topologicaly sort triangles to optimize caching coherency.
| HRESULT IRfMeshSet::GetMeshRayIntersection | ( | [in] RtPoint * | pPos, | |
| [in] RtVector3f * | pRay, | |||
| [out] RtUlong * | pdwTriangle, | |||
| [out] RtPoint * | pptBarycentric, | |||
| [out] RtPoint * | pptPosition, | |||
| [out] RtVector3f * | pptNormal | |||
| ) |
Get intersection of mesh and ray.
| pPos | [in] Supplied Ray origin in mesh space. | |
| pRay | [in] Supplied Ray direction in mesh space. | |
| pdwTriangle | [out] Pointer to be filled with intersected triangle index. | |
| pptBarycentric | [out] Quassy-barycentric coordinates of intersected triangle:
| |
| pptPosition | [out] Mesh space position of intersected point. | |
| pptNormal | [out] Mesh space normal of intersected point. |
| HRESULT IRfMeshSet::CreateVertexNormals | ( | ) |
Creates smooth vertex normals streams by creating triangle normal indices and custom normals stream.
| HRESULT IRfMeshSet::CreateGeometryLookupStreams | ( | ) |
Create default geometry identification streams.
| HRESULT IRfMeshSet::CreateGeometryIdentificationTable | ( | IRdGeometryIdentificationTableStream ** | ppTable | ) |
Calculate geometry retarget table.
| ppTable | [out] Calculated and cached geometry retargetting table. |
| HRESULT IRfMeshSet::ContainsMeshObj | ( | IRsNode * | pNode | ) |
Verify if Node contains Mesh Object.
| pNode | [in] Node name. |
| HRESULT IRfMeshSet::GetEdgeNeighbors | ( | [out, retval] IRdEdgeNeighborsStream ** | ppNeighbors | ) |
Creates stream containing neighbor triangle-edges of each edge.
Returns:
standard HRESULT processing can be applied to returned value.
1.5.5