This reference page is linked to from the following overview topics: Supported Scene Elements, FBX Node Attributes, List of Python FBX classes.
KFbxTrimNurbsSurface describes a NURBS surface with regions trimmed or cut away with trimming boundaries.
Definition at line 146 of file kfbxtrimnurbssurface.h.
#include <kfbxtrimnurbssurface.h>
Public Member Functions |
|
virtual EAttributeType | GetAttributeType () const |
Returns the type of node attribute. |
|
int | GetTrimRegionCount () const |
Returns the number of regions on this
trimmed NURBS surface. |
|
void | BeginTrimRegion () |
Calls this function before adding boundaries
to a new trim region. |
|
void | EndTrimRegion () |
Calls this function after the last boundary
for a given region is added. |
|
bool | AddBoundary (KFbxBoundary *pBoundary) |
Appends a trimming boundary to the set of
trimming boundaries. |
|
KFbxBoundary * | GetBoundary (int pIndex, int pRegionIndex=0) |
Returns the boundary at a given index for
the specified region. |
|
KFbxBoundary const * | GetBoundary (int pIndex, int pRegionIndex=0) const |
Returns the boundary at a given index for
the specified region. |
|
int | GetBoundaryCount (int pRegionIndex=0) const |
Returns the number of boundaries for a given
region. |
|
void | SetNurbsSurface (KFbxNurbsSurface const *pNurbs) |
Sets the NURBS surface that is trimmed by
the trimming boundaries. |
|
KFbxNurbsSurface * | GetNurbsSurface () |
Returns the NURBS surface that is trimmed by
the trim boundaries. |
|
KFbxNurbsSurface const * | GetNurbsSurface () const |
Returns the NURBS surface that is trimmed by
the trim boundaries. |
|
void | SetFlipNormals (bool pFlip) |
Sets the flag which indicates whether the
surface normals are flipped. |
|
bool | GetFlipNormals () const |
Checks if the normals are flipped. |
|
virtual int | GetControlPointsCount () const |
Returns the number of control points.
|
|
virtual void | SetControlPointAt (KFbxVector4 &pCtrlPoint, KFbxVector4 &pNormal, int pIndex) |
Sets the control point and the normal values
for a specified index. |
|
virtual KFbxVector4 * | GetControlPoints () const |
Returns the NURBS surface's control points.
|
|
virtual KFbxObject & | Copy (const KFbxObject &pObject) |
Copy an object content into this object.
|
|
bool | IsValid (bool mustClosed=true) |
void | ClearBoundaries () |
void | CopyBoundaries (KFbxTrimNurbsSurface const &pOther) |
bool | IsValid (int pRegion, bool mustClosed=true) |
void | RebuildRegions () |
Protected Member Functions |
|
KFbxTrimNurbsSurface (KFbxSdkManager &pManager, char const *pName) |
KFbxTrimNurbsSurface | ( | KFbxSdkManager & | pManager, |
char const * | pName | ||
) | [protected] |
virtual EAttributeType GetAttributeType | ( | ) | const [virtual] |
int GetTrimRegionCount | ( | ) | const |
Returns the number of regions on this trimmed NURBS surface.
Note: There is always at least one region.
void BeginTrimRegion | ( | ) |
Calls this function before adding boundaries to a new trim region.
The number of regions is incremented on this call.
void EndTrimRegion | ( | ) |
Calls this function after the last boundary for a given region is added.
If no boundaries are added between the calls to BeginTrimRegion and EndTrimRegion, the last region is removed.
bool AddBoundary | ( | KFbxBoundary * | pBoundary | ) |
Appends a trimming boundary to the set of trimming boundaries.
The first boundary specified for a given trim region should be the outer boundary. All other boundaries are inner boundaries. This must be called after a call to BeginTrimRegion(). Boundaries cannot be shared among regions. Duplicate the boundary if necessary.
pBoundary | The boundary to add. |
True
if the boundary is added successfully. If the
boundary is not added successfully, returns
false
.KFbxBoundary* GetBoundary | ( | int | pIndex, |
int | pRegionIndex =
0 |
||
) |
Returns the boundary at a given index for the specified region.
pIndex | The index of the boundary to retrieve, no bound checking is done. |
pRegionIndex | The index of the region which is bordered by the boundary. |
KFbxBoundary const* GetBoundary | ( | int | pIndex, |
int | pRegionIndex =
0 |
||
) | const |
Returns the boundary at a given index for the specified region.
pIndex | The index of the boundary to retrieve, no bound checking is done. |
pRegionIndex | The index of the region which is bordered by the boundary. |
int GetBoundaryCount | ( | int | pRegionIndex = 0 |
) | const |
Returns the number of boundaries for a given region.
pRegionIndex | The index of the region. |
void SetNurbsSurface | ( | KFbxNurbsSurface const * | pNurbs | ) |
Sets the NURBS surface that is trimmed by the trimming boundaries.
pNurbs | The NURBS surface to be trimmed. |
KFbxNurbsSurface* GetNurbsSurface | ( | ) |
Returns the NURBS surface that is trimmed by the trim boundaries.
KFbxNurbsSurface const* GetNurbsSurface | ( | ) | const |
Returns the NURBS surface that is trimmed by the trim boundaries.
void SetFlipNormals | ( | bool | pFlip | ) | [inline] |
Sets the flag which indicates whether the surface normals are flipped.
You can flip the normals of the surface to reverse the surface.
pFlip | If true , the surface is reversed. If it is false,
the surface is not reversed. |
Definition at line 225 of file kfbxtrimnurbssurface.h.
{ mFlipNormals = pFlip; }
bool GetFlipNormals | ( | ) | const [inline] |
Checks if the normals are flipped.
True
if normals are flipped, returns
false
if they are not flipped.Definition at line 230 of file kfbxtrimnurbssurface.h.
{ return mFlipNormals; }
virtual int GetControlPointsCount | ( | ) | const [virtual] |
Returns the number of control points.
Reimplemented from KFbxGeometryBase.
virtual void SetControlPointAt | ( | KFbxVector4 & | pCtrlPoint, |
KFbxVector4 & | pNormal, | ||
int | pIndex | ||
) | [virtual] |
Sets the control point and the normal values for a specified index.
pCtrlPoint | The value of the control point. |
pNormal | The value of the normal. |
pIndex | The specified index. |
virtual KFbxVector4* GetControlPoints | ( | ) | const [virtual] |
Returns the NURBS surface's control points.
Reimplemented from KFbxGeometryBase.
virtual KFbxObject& Copy | ( | const KFbxObject & | pObject | ) | [virtual] |
Copy an object content into this object.
pObject | The source object to copy data from. |
Reimplemented from KFbxGeometry.
bool IsValid | ( | bool | mustClosed = true |
) |
mustClosed | boundary curve must be closed |
void ClearBoundaries | ( | ) |
void CopyBoundaries | ( | KFbxTrimNurbsSurface const & | pOther | ) |
bool IsValid | ( | int | pRegion, |
bool | mustClosed =
true |
||
) |
void RebuildRegions | ( | ) |