MeshGui::SoFCMeshSegmentShape Class Reference

#include <SoFCMeshObject.h>

Public Member Functions

 SoFCMeshSegmentShape ()
 

Static Public Member Functions

static void initClass ()
 

Public Attributes

SoSFUInt32 index
 
unsigned int renderTriangleLimit
 

Protected Member Functions

virtual void computeBBox (SoAction *action, SbBox3f &box, SbVec3f &center)
 Sets the bounding box of the mesh to box and its center to center. More...
 
virtual void generatePrimitives (SoAction *action)
 Sets the point indices, the geometric points and the normal for each triangle. More...
 
virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)
 Adds the number of the triangles to the SoGetPrimitiveCountAction. More...
 
virtual void GLRender (SoGLRenderAction *action)
 Either renders the complete mesh or only a subset of the points. More...
 

Constructor & Destructor Documentation

◆ SoFCMeshSegmentShape()

SoFCMeshSegmentShape::SoFCMeshSegmentShape ( )

Member Function Documentation

◆ computeBBox()

◆ generatePrimitives()

void SoFCMeshSegmentShape::generatePrimitives ( SoAction action)
protectedvirtual

Sets the point indices, the geometric points and the normal for each triangle.

If the number of triangles exceeds renderTriangleLimit then only a triangulation of a rough model is filled in instead. This is due to performance issues.

See also
createTriangleDetail().

References Base::Console(), MeshGui::SoFCMeshObjectElement::get(), and Base::ConsoleSingleton::Log().

◆ getPrimitiveCount()

void SoFCMeshSegmentShape::getPrimitiveCount ( SoGetPrimitiveCountAction *  action)
protectedvirtual

Adds the number of the triangles to the SoGetPrimitiveCountAction.

References MeshGui::SoFCMeshObjectElement::get(), and Mesh::Segment::getIndices().

◆ GLRender()

void SoFCMeshSegmentShape::GLRender ( SoGLRenderAction action)
protectedvirtual

Either renders the complete mesh or only a subset of the points.

References Gui::SoFCInteractiveElement::get(), and MeshGui::SoFCMeshObjectElement::get().

◆ initClass()

void SoFCMeshSegmentShape::initClass ( void  )
static

Member Data Documentation

◆ index

SoSFUInt32 MeshGui::SoFCMeshSegmentShape::index

◆ renderTriangleLimit

unsigned int MeshGui::SoFCMeshSegmentShape::renderTriangleLimit

The documentation for this class was generated from the following files: