#include<kfbxgeometryconverter.h>
Definition at line77of filekfbxgeometryconverter.h.
Triangulation | |
KFbxMesh* | TriangulateMesh(KFbxMeshconst *pMesh) |
Triangulate a mesh. | |
KFbxMesh* | TriangulatePatch(KFbxPatchconst *pPatch) |
Triangulate a patch. | |
KFbxMesh* | TriangulateNurb(KFbxNurbconst *pNurb) |
Triangulate a nurb. | |
bool | TriangulateInPlace(KFbxNode*pNode) |
Triangulate a mesh, patch or nurb contained in a node in order to preserve related animation channels. | |
bool | AddAlternateGeometry(KFbxNode*pNode,KFbxGeometry*pSrcGeom,KFbxGeometry*pAltGeom,KFbxWeightedMapping*pSrcToAltWeightedMapping, bool pConvertDeformations) |
Add an "alternate" geometry to the node. | |
bool | ConvertGeometryAnimation(KFbxNode*pNode,KFbxGeometry*pSrcGeom,KFbxGeometry*pDstGeom) |
Convert shape(s) and link(s) from souce to destination geometry. | |
bool | ComputeGeometryControlPointsWeightedMapping(KFbxGeometry*pSrcGeom,KFbxGeometry*pDstGeom,KFbxWeightedMapping*pSrcToDstWeightedMapping, bool pSwapUV=false) |
Compute a "vertex-correspondance" table that helps passing from source to destination geometry. | |
Geometry Conversion | |
KFbxNurb* | ConvertPatchToNurb(KFbxPatch*pPatch) |
Convert from patch to nurb. | |
bool | ConvertPatchToNurbInPlace(KFbxNode*pNode) |
Convert a patch contained in a node to a nurb. | |
KFbxNurbsSurface* | ConvertPatchToNurbsSurface(KFbxPatch*pPatch) |
Convert a patch to nurb surface. | |
bool | ConvertPatchToNurbsSurfaceInPlace(KFbxNode*pNode) |
Convert a patch contained in a node to a nurb surface. | |
KFbxNurbsSurface* | ConvertNurbToNurbsSurface(KFbxNurb*pNurb) |
Convert aKFbxNurbto aKFbxNurbsSurface. | |
KFbxNurb* | ConvertNurbsSurfaceToNurb(KFbxNurbsSurface*pNurb) |
Convert aKFbxNurbsSurfaceto aKFbxNurb. | |
bool | ConvertNurbToNurbsSurfaceInPlace(KFbxNode*pNode) |
Convert a nurb, contained in a node, to a nurbs surface. | |
bool | ConvertNurbsSurfaceToNurbInPlace(KFbxNode*pNode) |
Convert a nurb contained in a node to a nurbs surface. | |
Nurb UV and Links Swapping | |
KFbxNurb* | FlipNurb(KFbxNurb*pNurb, bool pSwapUV, bool pSwapClusters) |
Flip UV and/or links of a nurb. | |
KFbxNurbsSurface* | FlipNurbsSurface(KFbxNurbsSurface*pNurb, bool pSwapUV, bool pSwapClusters) |
Flip UV and/or links of a nurb surface. | |
Normals By Polygon Vertex Emulation | |
bool | EmulateNormalsByPolygonVertex(KFbxMesh*pMesh) |
Emulate normals by polygon vertex mode for a mesh. | |
bool | ComputeEdgeSmoothingFromNormals(KFbxMesh*pMesh) const |
Create edge smoothing information from polygon-vertex mapped normals. | |
bool | ComputePolygonSmoothingFromEdgeSmoothing(KFbxMesh*pMesh, int pIndex=0) const |
Convert edge smoothing to polygon smoothing group. | |
bool | ComputeEdgeSmoothingFromPolygonSmoothing(KFbxMesh*pMesh, int pIndex=0) const |
Convert polygon smoothing group to edge smoothing. |
Triangulate a mesh.
pMesh | Pointer to the mesh to triangulate. |
Triangulate a patch.
pPatch | Pointer to the patch to triangulate. |
Triangulate a nurb.
pNurb | Pointer to the nurb to triangulate. |
bool TriangulateInPlace | ( | KFbxNode* | pNode | ) |
Triangulate a mesh, patch or nurb contained in a node in order to preserve related animation channels.
pNode | Pointer to the node containng the geometry to triangulate. |
true
on success, orfalse
if the node attribute is not a mesh, a patch or a nurb.bool AddAlternateGeometry | ( | KFbxNode* | pNode, | |
KFbxGeometry* | pSrcGeom, | |||
KFbxGeometry* | pAltGeom, | |||
KFbxWeightedMapping* | pSrcToAltWeightedMapping, | |||
bool | pConvertDeformations | |||
) |
Add an "alternate" geometry to the node.
pNode | Pointer to the node containing the geometry. | |
pSrcGeom | Pointer to the source geometry. | |
pAltGeom | Pointer to the alternate geometry. | |
pSrcToAltWeightedMapping | Pointer to the weighted mapping table (optional). | |
pConvertDeformations | Flag used only if parameter pSrcToAltWeightedMapping is a valid pointer to a weighted mapping table. Set totrue to convert deformations using the weighted mapping table. |
true
on success, orfalse
if the node attribute is not a mesh, a patch or a nurb.bool ConvertGeometryAnimation | ( | KFbxNode* | pNode, | |
KFbxGeometry* | pSrcGeom, | |||
KFbxGeometry* | pDstGeom | |||
) |
Convert shape(s) and link(s) from souce to destination geometry.
pNode | Pointer to the node containng the geometry. | |
pSrcGeom | Pointer to the source geometry. | |
pDstGeom | Pointer to the destination geometry. |
true
on success,false
otherwise.bool ComputeGeometryControlPointsWeightedMapping | ( | KFbxGeometry* | pSrcGeom, | |
KFbxGeometry* | pDstGeom, | |||
KFbxWeightedMapping* | pSrcToDstWeightedMapping, | |||
bool | pSwapUV=false | |||
) |
Compute a "vertex-correspondance" table that helps passing from source to destination geometry.
pSrcGeom | Pointer to the source geometry. | |
pDstGeom | Pointer to the destination geometry. | |
pSrcToDstWeightedMapping | Pointer to the weighted mapping table. | |
pSwapUV | Set totrue to swap UVs. |
true
on success,false
if the function fails to compute the correspondance.Convert from patch to nurb.
pPatch | Pointer to the patch to convert. |
NULL
if the conversion fails.bool ConvertPatchToNurbInPlace | ( | KFbxNode* | pNode | ) |
Convert a patch contained in a node to a nurb.
Use this function to preserve the patch's related animation channels.
pNode | Pointer to the node containing the patch. |
true
on success,false
if the node attribute is not a patch.KFbxNurbsSurface* ConvertPatchToNurbsSurface | ( | KFbxPatch* | pPatch | ) |
Convert a patch to nurb surface.
pPatch | Pointer to the patch to convert. |
NULL
if conversion fails.bool ConvertPatchToNurbsSurfaceInPlace | ( | KFbxNode* | pNode | ) |
Convert a patch contained in a node to a nurb surface.
Use this function to preserve the patch's related animation channels.
pNode | Pointer to the node containing the patch. |
true
on success,false
if the node attribute is not a patch.KFbxNurbsSurface* ConvertNurbToNurbsSurface | ( | KFbxNurb* | pNurb | ) |
Convert aKFbxNurbto aKFbxNurbsSurface.
pNurb | Pointer to the original nurb |
KFbxNurb* ConvertNurbsSurfaceToNurb | ( | KFbxNurbsSurface* | pNurb | ) |
Convert aKFbxNurbsSurfaceto aKFbxNurb.
pNurb | Pointer to the original nurbs surface |
bool ConvertNurbToNurbsSurfaceInPlace | ( | KFbxNode* | pNode | ) |
Convert a nurb, contained in a node, to a nurbs surface.
Use this function to preserve the nurb's related animation channels.
pNode | Pointer to the node containing the nurb. |
true
on success,false
otherwisebool ConvertNurbsSurfaceToNurbInPlace | ( | KFbxNode* | pNode | ) |
Convert a nurb contained in a node to a nurbs surface.
Use this function to preserve the nurb's related animation channels.
pNode | Pointer to the node containing the nurbs surface. |
true
on success,false
otherwiseFlip UV and/or links of a nurb.
pNurb | Pointer to the Source nurb. | |
pSwapUV | Set totrue to swap the UVs. | |
pSwapClusters | Set totrue to swap the control point indices of clusters. |
NULL
if the function fails.KFbxNurbsSurface* FlipNurbsSurface | ( | KFbxNurbsSurface* | pNurb, | |
bool | pSwapUV, | |||
bool | pSwapClusters | |||
) |
Flip UV and/or links of a nurb surface.
pNurb | Pointer to the Source nurb surface. | |
pSwapUV | Set totrue to swap the UVs. | |
pSwapClusters | Set totrue to swap the control point indices of clusters. |
NULL
if the function fails.bool EmulateNormalsByPolygonVertex | ( | KFbxMesh* | pMesh | ) |
Emulate normals by polygon vertex mode for a mesh.
pMesh | Pointer to the mesh object. |
true
on success,false
if the number of normals in the mesh and in its associated shapes don't match the number of polygon vertices.bool ComputeEdgeSmoothingFromNormals | ( | KFbxMesh* | pMesh | ) | const |
Create edge smoothing information from polygon-vertex mapped normals.
Existing smoothing information is removed and edge data is created if none exists on the mesh.
pMesh | The mesh used to generate edge smoothing. |
true
on success,false
otherwise.bool ComputePolygonSmoothingFromEdgeSmoothing | ( | KFbxMesh* | pMesh, | |
int | pIndex=0 | |||
) | const |
Convert edge smoothing to polygon smoothing group.
Existing smoothing information is replaced.
pMesh | The mesh that contains the smoothing to be converted. | |
pIndex | The index of the layer smoothing to be converted. |
true
on success,false
otherwise.bool ComputeEdgeSmoothingFromPolygonSmoothing | ( | KFbxMesh* | pMesh, | |
int | pIndex=0 | |||
) | const |
Convert polygon smoothing group to edge smoothing.
Existing smoothing information is replaced.
pMesh | The mesh that contains the smoothing to be converted. | |
pIndex | The index of the layer smoothing to be converted |
true
on success,false
otherwise.