Package openalea :: Package plantgl :: Package scenegraph :: Module _pglsg :: Class TriangleSet
[frames] | no frames]

Class TriangleSet

 object --+                        
          |                        
??.instance --+                    
              |                    
    SceneObject --+                
                  |                
           Geometry --+            
                      |            
              Primitive --+        
                          |        
              ExplicitModel --+    
                              |    
                           Mesh --+
                                  |
                                 TriangleSet

A TriangleSet describes a surface formed by a set of connected triangles, i.e. three sided polygons.
Triangles are specified using set of tuples of 3 indices (Index3) pointing to a list of points.

Instance Methods
 
__init__(...)
__init__( (object)arg1) -> None : TriangleSet()
 
colorAt(...)
colorAt( (TriangleSet)arg1, (int)arg2 [, (int)arg3]) -> Color4 :
 
colorIndexAt(...)
colorIndexAt( (TriangleSet)arg1, (int)arg2) -> Index3 :
 
copy(...)
copy( (TriangleSet)arg1) -> SceneObject :
 
indexAt(...)
indexAt( (TriangleSet)arg1, (int)arg2) -> Index3 :
 
isColorIndexListToDefault(...)
isColorIndexListToDefault( (TriangleSet)arg1) -> bool :
 
isNormalIndexListToDefault(...)
isNormalIndexListToDefault( (TriangleSet)arg1) -> bool :
 
isTexCoordIndexListToDefault(...)
isTexCoordIndexListToDefault( (TriangleSet)arg1) -> bool :
 
normalAt(...)
normalAt( (TriangleSet)arg1, (int)arg2 [, (int)arg3]) -> Vector3 :
 
normalIndexAt(...)
normalIndexAt( (TriangleSet)arg1, (int)arg2) -> Index3 :
 
texCoordAt(...)
texCoordAt( (TriangleSet)arg1, (int)arg2 [, (int)arg3]) -> Vector2 :
 
texCoordIndexAt(...)
texCoordIndexAt( (TriangleSet)arg1, (int)arg2) -> Index3 :

Inherited from Mesh: computeNormalList, faceCenter, faceSize, indexListSize, isCCWToDefault, isColorPerVertexToDefault, isNormalListToDefault, isNormalPerVertexToDefault, isSkeletonToDefault, isSolidToDefault, isTexCoordListToDefault, pointAt

Inherited from ExplicitModel: isColorListToDefault, transform

Inherited from Geometry: deepcopy, isACurve, isASurface, isAVolume, isExplicit

Inherited from SceneObject: __reduce__, apply, getId, getName, isNamed, isValid, setName

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables
  __instance_size__ = 12

Inherited from SceneObject: __safe_for_unpickling__

Properties
  colorIndexList
  indexList
  normalIndexList
  texCoordIndexList

Inherited from Mesh: DEFAULT_CCW, DEFAULT_COLORPERVERTEX, DEFAULT_NORMALPERVERTEX, DEFAULT_SKELETON, DEFAULT_SOLID, ccw, colorPerVertex, normalList, normalPerVertex, skeleton, solid, texCoordList

Inherited from ExplicitModel: colorList, pointList

Inherited from SceneObject: name

Inherited from object: __class__

Method Details

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :
    TriangleSet()

    C++ signature :
        void __init__(struct _object *)

__init__( (object)arg1, (Point3Array)points, (Index3Array)indices [, (bool)normalPerVertex [, (bool)ccw [, (bool)solid [, (Polyline)skeleton]]]]) -> None :
    TriangleSet(Point3Array points, Index3Array indices [,bool normalPerVertex, bool ccw, bool solid, Polyline skeleton])

    C++ signature :
        void __init__(struct _object *,class TOOLS::RefCountPtr<class PGL::Point3Array>,class TOOLS::RefCountPtr<class PGL::Index3Array> [,bool [,bool [,bool [,class TOOLS::RefCountPtr<class PGL::Polyline>]]]])

__init__( (object)arg1, (Point3Array)points, (Index3Array)indices, (Point3Array)normals [, (Index3Array)nomalIndices [, (Color4Array)colors [, (Index3Array)colorIndices [, (Point2Array)texCoord [, (Index3Array)texCoordIndices [, (bool)normalPerVertex [, (bool)colorPerVertex [, (bool)ccw [, (bool)solid [, (Polyline)skeleton]]]]]]]]]]) -> None :
    TriangleSet(Point3Array points, Index3Array indices, Point3Array normal[, Index3Array nomalIndices, Color4Array colors, Index3Array colorIndices, Point2Array texCoord, Index3Array texCoordIndices, bool normalPerVertex, bool colorPerVertex, bool ccw, bool solid, Polyline skeleton])

    C++ signature :
        void __init__(struct _object *,class TOOLS::RefCountPtr<class PGL::Point3Array>,class TOOLS::RefCountPtr<class PGL::Index3Array>,class TOOLS::RefCountPtr<class PGL::Point3Array> [,class TOOLS::RefCountPtr<class PGL::Index3Array> [,class TOOLS::RefCountPtr<class PGL::Color4Array> [,class TOOLS::RefCountPtr<class PGL::Index3Array> [,class TOOLS::RefCountPtr<class PGL::Point2Array> [,class TOOLS::RefCountPtr<class PGL::Index3Array> [,bool [,bool [,bool [,bool [,class TOOLS::RefCountPtr<class PGL::Polyline>]]]]]]]]]])

Overrides: object.__init__

colorAt(...)

 

colorAt( (TriangleSet)arg1, (int)arg2 [, (int)arg3]) -> Color4 :

    C++ signature :
        class PGL::Color4 colorAt(class PGL::TriangleSet {lvalue},unsigned int [,unsigned int])

colorIndexAt(...)

 

colorIndexAt( (TriangleSet)arg1, (int)arg2) -> Index3 :

    C++ signature :
        class TOOLS::Tuple3<unsigned int> colorIndexAt(class PGL::TriangleSet {lvalue},unsigned int)

copy(...)

 

copy( (TriangleSet)arg1) -> SceneObject :

    C++ signature :
        class TOOLS::RefCountPtr<class PGL::SceneObject> copy(class PGL::TriangleSet {lvalue})

indexAt(...)

 

indexAt( (TriangleSet)arg1, (int)arg2) -> Index3 :

    C++ signature :
        class TOOLS::Tuple3<unsigned int> indexAt(class PGL::TriangleSet {lvalue},unsigned int)

isColorIndexListToDefault(...)

 

isColorIndexListToDefault( (TriangleSet)arg1) -> bool :

    C++ signature :
        bool isColorIndexListToDefault(class PGL::TriangleSet {lvalue})

isNormalIndexListToDefault(...)

 

isNormalIndexListToDefault( (TriangleSet)arg1) -> bool :

    C++ signature :
        bool isNormalIndexListToDefault(class PGL::TriangleSet {lvalue})

isTexCoordIndexListToDefault(...)

 

isTexCoordIndexListToDefault( (TriangleSet)arg1) -> bool :

    C++ signature :
        bool isTexCoordIndexListToDefault(class PGL::TriangleSet {lvalue})

normalAt(...)

 

normalAt( (TriangleSet)arg1, (int)arg2 [, (int)arg3]) -> Vector3 :

    C++ signature :
        class TOOLS::Vector3 normalAt(class PGL::TriangleSet {lvalue},unsigned int [,unsigned int])

normalIndexAt(...)

 

normalIndexAt( (TriangleSet)arg1, (int)arg2) -> Index3 :

    C++ signature :
        class TOOLS::Tuple3<unsigned int> normalIndexAt(class PGL::TriangleSet {lvalue},unsigned int)

texCoordAt(...)

 

texCoordAt( (TriangleSet)arg1, (int)arg2 [, (int)arg3]) -> Vector2 :

    C++ signature :
        class TOOLS::Vector2 texCoordAt(class PGL::TriangleSet {lvalue},unsigned int [,unsigned int])

texCoordIndexAt(...)

 

texCoordIndexAt( (TriangleSet)arg1, (int)arg2) -> Index3 :

    C++ signature :
        class TOOLS::Tuple3<unsigned int> texCoordIndexAt(class PGL::TriangleSet {lvalue},unsigned int)


Property Details

colorIndexList

Get Method:
unreachable(...)
Set Method:
unreachable(...)

indexList

Get Method:
unreachable(...)
Set Method:
unreachable(...)

normalIndexList

Get Method:
unreachable(...)
Set Method:
unreachable(...)

texCoordIndexList

Get Method:
unreachable(...)
Set Method:
unreachable(...)