SoNurbsProfile - Online Linux Manual PageSection : 3
Updated : Mon Jan 25 2021
Source : Version 2.5.0
Note : Coin
NAMESoNurbsProfile − The SoNurbsProfile class is a node for specifying smooth profile curves.
SYNOPSIS
#include <Inventor/nodes/SoNurbsProfile.h> Inherits SoProfile.
Public Member Functionsvirtual SoType getTypeId (void) const
SoNurbsProfile (void)
virtual void getTrimCurve (SoState *state, int32_t &numpoints, float *&points, int &floatspervec, int32_t &numknots, float *&knotvector)
virtual void getVertices (SoState *state, int32_t &numvertices, SbVec2f *&vertices)
Static Public Member Functionsstatic SoType getClassTypeId (void)
static void initClass (void)
Public AttributesSoMFFloat knotVector
Protected Member Functionsvirtual const SoFieldData * getFieldData (void) const
virtual ~SoNurbsProfile ()
Static Protected Member Functionsstatic const SoFieldData ** getFieldDataPtr (void)
Additional Inherited Members
Detailed DescriptionThe SoNurbsProfile class is a node for specifying smooth profile curves. Use nodes of this type if you want to set up profiles that are smooth curves. A typical usage case for SoNurbsProfile is to specify NURBS trimming curves. For example: #Inventor V2.1 ascii
ShapeHints {
vertexOrdering COUNTERCLOCKWISE
}
Coordinate3 {
point [
-3 -3 -3, -3 -1 -3, -3 1 -3, -3 3 -3,
-1 -3 -3, -1 -1 3, -1 1 3, -1 3 -3,
1 -3 -3, 1 -1 3, 1 1 3, 1 3 -3,
3 -3 -3, 3 -1 -3, 3 1 -3, 3 3 -3
]
}
ProfileCoordinate2 {
point [ 0.0 0.0 ,
0.75 0.0,
0.75 0.75 ,
0.25 0.75 ,
0.0 0.0 ]
}
NurbsProfile {
index [ 0 , 1 , 2 , 3, 4 ]
linkage START_NEW
knotVector [ 0, 0, 0, 0, 0.5, 1, 1, 1, 1 ]
}
NurbsSurface {
numUControlPoints 4
numVControlPoints 4
uKnotVector [ 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0 ]
vKnotVector [ 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0 ]
}Note that the coordinates of the NurbsProfile live in the parametric space of the trimmed SoNurbsSurface, and that the same complexity setting (which is calculated based on the dimensions of the bounding box of the nurbs surface) is used to determine the sampling tolerance both for the SoNurbsSurface and the SoNurbsProfile. This means that if you want to change the tessellation of the trimming curve itself (i.e. increase or decrease the resolution of the boundaries of the 'cut-out'), you should not change the SoComplexity setting but rather adapt the parametric scale in relation to the trimmed surface. As an example, to increase the resolution of the curve in the above example, replace... ProfileCoordinate2 {
point [ 0.0 0.0, 0.75 0.0, 0.75 0.75, 0.25 0.75, 0.0 0.0 ]
}.. with... ProfileCoordinate2 {
point [ 0.0 0.0, 7.5 0.0, 7.5 7.5, 2.5 7.5, 0.0 0.0 ]
}and change the uKnotVector and vKnotVector of the NurbsSurface to be uKnotVector [ 0.0, 0.0, 0.0, 0.0, 10, 10, 10, 10 ]
vKnotVector [ 0.0, 0.0, 0.0, 0.0, 10, 10, 10, 10 ]However, keep in mind that increasing the accuracy of the trimming curve results in a much more complex tesselation of the trimmed surface. As a general rule of thumb, the extent of the trimming curve coordinates should never be greater than its 'real' extents in relation to the trimmed surface, and often can be much lower. If you find the above confusing, you probably do not want to use NURBS without reading up on the general concepts first. An explanation of NURBS is beyond the scope of the Coin documentation; for detailed information, refer to the specialized literature on the topic (for example 'An Introduction to NURBS: With Historical Perspective' by David F. Rogers). A basic overview of curve and surface rendering using NURBS can also be found in chapter 8 of 'The Inventor Mentor'. FILE FORMAT/DEFAULTS: NurbsProfile {
index 0
linkage START_FIRST
knotVector 0
}
Constructor & Destructor Documentation
SoNurbsProfile::SoNurbsProfile (void)Constructor. References knotVector.
SoNurbsProfile::~SoNurbsProfile () [protected], [virtual]Destructor.
Member Function Documentation
SoType SoNurbsProfile::getTypeId (void) const [virtual]Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and 'downward' casting. Usage example: void foo(SoNode * node)
{
if (node->getTypeId() == SoFile::getClassTypeId()) {
SoFile * filenode = (SoFile *)node; // safe downward cast, knows the type
}
else if (node->getTypeId().isOfType(SoGroup::getClassTypeId())) {
SoGroup * group = (SoGroup *)node; // safe downward cast, knows the type
}
}For application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through for instance Inventor/nodes/SoSubNode.h (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes) and so on. For more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups. Reimplemented from SoProfile.
const SoFieldData * SoNurbsProfile::getFieldData (void) const [protected], [virtual]Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns NULL. Reimplemented from SoProfile.
void SoNurbsProfile::getTrimCurve (SoState * state, int32_t & numpoints, float *& points, int & floatspervec, int32_t & numknots, float *& knotvector) [virtual]Return points and knotvector of the state. Implements SoProfile. References SbList< Type >::append(), SbList< Type >::getArrayPtr(), SoMField::getNum(), SoMFFloat::getValues(), SoProfile::index, knotVector, SoDebugError::postWarning(), and SbList< Type >::truncate(). Referenced by SoText3::computeBBox(), and getVertices().
void SoNurbsProfile::getVertices (SoState * state, int32_t & numvertices, SbVec2f *& vertices) [virtual]Return vertex set of state. Implements SoProfile. References SbList< Type >::append(), SbList< Type >::getArrayPtr(), SbList< Type >::getLength(), SbViewVolume::getMatrices(), getTrimCurve(), SbMatrix::identity(), SbViewVolume::ortho(), and SbList< Type >::truncate().
Member Data Documentation
SoMFFloat SoNurbsProfile::knotVectorKnot values for the nurbs curve. Referenced by getTrimCurve(), and SoNurbsProfile().
AuthorGenerated automatically by Doxygen for Coin from the source code. 0
Johanes Gumabo
Data Size : 28,308 byte
man-SoNurbsProfile.3coin2Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 183,991
Visitor ID : :
Visitor IP : 3.22.27.41 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.