SoFaceDetail - Online Linux Manual PageSection : 3
Updated : Mon Jan 25 2021
Source : Version 2.5.0
Note : Coin

NAMESoFaceDetail − The SoFaceDetail class is for storing detailed polygon information​.

SYNOPSIS
#include <Inventor/details/SoFaceDetail​.h> Inherits SoDetail​.

Public Member Functionsvirtual SoType getTypeId (void) const
SoFaceDetail (void)
virtual ~SoFaceDetail ()
virtual SoDetail * copy (void) const
int getNumPoints (void) const
const SoPointDetail * getPoint (const int idx) const
SoPointDetail * getPoints (void)
int getFaceIndex (void) const
int getPartIndex (void) const
void setNumPoints (const int num)
void setPoint (const int idx, const SoPointDetail *const detail)
void setFaceIndex (const int idx)
void setPartIndex (const int idx)
void incFaceIndex (void)
void incPartIndex (void)

Static Public Member Functionsstatic SoType getClassTypeId (void)
static void initClass (void)

Additional Inherited Members

Detailed DescriptionThe SoFaceDetail class is for storing detailed polygon information​. Instances of this class are used among other things for storing information about polygons after pick operations, and for storing information returned to tessellation callbacks​. Note that a SoFaceDetail instance consists of a set of SoPointDetail instances, one for each vertex of the polygon it represents​. See also SoRayPickAction, SoPickedPoint, SoCallbackAction

Constructor & Destructor Documentation

SoFaceDetail::SoFaceDetail (void)Default constructor sets up an empty, non-valid detail specification​. Referenced by copy()​.

SoFaceDetail::~SoFaceDetail () [virtual]Destructor, free internal resources used for storing the polygon vertices​.

Member Function Documentation

SoType SoFaceDetail::getTypeId (void) const [virtual]Returns the type identification of a detail derived from a class inheriting SoDetail​. This is used for run-time type checking and 'downward' casting​. Usage example: void fuhbear(SoDetail * detail) { if (detail->getTypeId() == SoFaceDetail::getClassTypeId()) { // safe downward cast, know the type SoFaceDetail * facedetail = (SoFaceDetail *)detail; } return; // ignore if not a SoFaceDetail }For application programmers wanting to extend the library with new detail classes: 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 Inventor/nodes/SoSubDetail​.h: SO_DETAIL_SOURCE and SO_DETAIL_INIT_CLASS​. Implements SoDetail​.

SoDetail * SoFaceDetail::copy (void) const [virtual]Return a deep copy of ourself​. Note that if the Coin library has been built as a DLL under Microsoft Windows and you use this method from application code, you must make sure that both the Coin DLL and the application executable is using the same instance of a C Run-Time (CRT) library​. Otherwise, you will get memory heap corruption upon deallocating the returned instances, eventually leading to mysterious crashes​.

Implements SoDetail​. References getPoint(), and SoFaceDetail()​.

int SoFaceDetail::getNumPoints (void) constNumber of vertices making up the polygon​.

const SoPointDetail * SoFaceDetail::getPoint (const int idx) constReturns a pointer into the array of vertices, starting at the idx'th vertice of the polygon​. The array will contain (SoFaceDetail::getNumPoints() - idx) elements​. Referenced by copy()​.

SoPointDetail * SoFaceDetail::getPoints (void)Returns the full array of vertice details for the polygon​. The array will contain SoFaceDetail::getNumPoints() elements​.

int SoFaceDetail::getFaceIndex (void) constReturns the index of this polygon within the faceset node it is part of​.

int SoFaceDetail::getPartIndex (void) constIf this SoFaceDetail represents a triangle tessellated from a complex shape, this method returns the index of the part of the complex shape it was tessellated from​.

void SoFaceDetail::setNumPoints (const int num)Used internally from library client code setting up a SoFaceDetail instance​. See also getNumPoints()

void SoFaceDetail::setPoint (const int idx, const SoPointDetail *const detail)Used internally from library client code setting up a SoFaceDetail instance​. See also getPoint(), getPoints()

void SoFaceDetail::setFaceIndex (const int idx)Used internally from library client code setting up a SoFaceDetail instance​. See also getFaceIndex() Referenced by SoIndexedTriangleStripSet::generatePrimitives(), SoQuadMesh::generatePrimitives(), and SoTriangleStripSet::generatePrimitives()​.

void SoFaceDetail::setPartIndex (const int idx)Used internally from library client code setting up a SoFaceDetail instance​. See also getPartIndex()

void SoFaceDetail::incFaceIndex (void)Used internally from library client code setting up a SoFaceDetail instance​. This function is specific for Coin, and is not present in SGI/TGS Open Inventor​. Referenced by SoFaceSet::generatePrimitives(), SoIndexedFaceSet::generatePrimitives(), SoIndexedTriangleStripSet::generatePrimitives(), SoQuadMesh::generatePrimitives(), SoTriangleStripSet::generatePrimitives(), SoVRMLElevationGrid::generatePrimitives(), and SoVRMLIndexedFaceSet::generatePrimitives()​.

void SoFaceDetail::incPartIndex (void)Used internally from library client code setting up a SoFaceDetail instance​. This function is specific for Coin, and is not present in SGI/TGS Open Inventor​. Referenced by SoIndexedFaceSet::generatePrimitives(), SoIndexedTriangleStripSet::generatePrimitives(), SoQuadMesh::generatePrimitives(), and SoTriangleStripSet::generatePrimitives()​.

AuthorGenerated automatically by Doxygen for Coin from the source code​.
0
Johanes Gumabo
Data Size   :   28,368 byte
man-SoFaceDetail.3coin2Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 203,243
Visitor ID   :     :  
Visitor IP   :   3.12.146.108   :  
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.