29 #ifndef __TRIANGLESET2D_H__
30 #define __TRIANGLESET2D_H__
70 virtual void update() {
71 const vector< Vec2f > &points =
74 _bound->fitAround2DPoints( points.begin(), points.end() );
81 Inst< SFBound > _bound = 0,
82 Inst< DisplayList > _displayList = 0,
83 Inst< MFBool > _isTouched = 0,
84 Inst< MFVec3f > _force = 0,
85 Inst< MFVec3f > _contactPoint = 0,
86 Inst< MFVec3f > _contactNormal = 0,
87 Inst< MFVec2f > _vertices = 0,
88 Inst< SFBool > _solid = 0 );
93 virtual void render();
101 return vertices->size() / 3;
Contains the MFVec2f field class.
Header file for X3DGeometryNode, X3D scene-graph node.
The BoxBound is a Bound class that specifies the bound using an axis-aligned bounding box.
Definition: Bound.h:144
The MFVec2f field contains a vector of Vec2f.
Definition: MFVec2f.h:41
TraverseInfo is a structure that is passed along when traversing the scene graph.
Definition: TraverseInfo.h:57
SFBound is specialized update itself from the vertices field of the TriangleSet2D node.
Definition: TriangleSet2D.h:68
The TriangleSet2D node specifies a set of triangles in the local 2D coordinate system.
Definition: TriangleSet2D.h:59
H3DUniquePtr< MFVec2f > vertices
The vertices field specifies the triangles to be displayed.
Definition: TriangleSet2D.h:111
H3DUniquePtr< Field > vboFieldsUpToDate
Internal field used to know if vertex buffer object can be created.
Definition: TriangleSet2D.h:127
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: TriangleSet2D.h:123
H3DUniquePtr< SFBool > solid
The solid field specifies if both sides of the closed arc should be rendered.
Definition: TriangleSet2D.h:120
virtual int nrTriangles()
The number of triangles renderered in this geometry.
Definition: TriangleSet2D.h:100
A template modifier class for adding type checking on the routes to any Field class.
Definition: TypedField.h:84
This is the base node type for all geometry in X3D.
Definition: X3DGeometryNode.h:61
Type getValue(const char *s, const char *&rest)
Function that reads characters from a char * and converts them to a given type.
Definition: X3DFieldConversion.h:134
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194