HE_Mesh  5.1.0
geomerative.RStrip Class Reference

Public Member Functions

 RStrip ()
 
int countVertices ()
 
void draw (PGraphics g)
 
void addVertex (RPoint p)
 
void addVertex (float x, float y)
 
RPoint[] getHandles ()
 
RPoint[] getPoints ()
 
void transform (RMatrix m)
 

Public Attributes

int type = RGeomElem.TRISTRIP
 

Related Functions

(Note that these are not member functions.)

RPoint vertices []
 
 RStrip (RStrip s)
 
RContour getBounds ()
 

Detailed Description

RStrip is a reduced interface for creating, holding and drawing triangle strips. Triangle strips are ordered lists of points (RPoint) which define the vertices of a mesh. RStrip Geometry

Constructor & Destructor Documentation

geomerative.RStrip.RStrip ( )

Member Function Documentation

void geomerative.RStrip.addVertex ( RPoint  p)

Use this method to add new vertices to the strip. addVertex ( )

void geomerative.RStrip.addVertex ( float  x,
float  y 
)
int geomerative.RStrip.countVertices ( )

Use this method to count the number of vertices in the strip. countVertices

Returns
int, the number vertices in the strip
void geomerative.RStrip.draw ( PGraphics  g)

Use this method to draw the strip. drawStrip

Parameters
gPGraphics, the graphics object on which to draw the strip
RPoint [] geomerative.RStrip.getHandles ( )

Use this to get the vertices of the strip. It returns the points as an array of RPoint. RStrip_getHandles

Returns
RPoint[], the vertices returned in an array.
RPoint [] geomerative.RStrip.getPoints ( )

Use this to get the vertices of the strip. It returns the points as an array of RPoint. RStrip_getPoints

Returns
RPoint[], the vertices returned in an array.
void geomerative.RStrip.transform ( RMatrix  m)

Use this method to transform the strip. transformStrip

Parameters
mRMatrix, the matrix of the affine transformation to apply to the strip

Friends And Related Function Documentation

RContour getBounds ( )
related

Use this method to get the bounding box of the strip. getBounds

Returns
RContour, the bounding box of the strip in the form of a four-point contour ( )
RStrip ( RStrip  s)
related

Use this method to create a new strip. RStrip ( ) ( )

Parameters
sthe object of which to make a copy
RPoint vertices[]
related

Array of RPoint objects holding the vertices of the strip. vertices

( ) ( )

Member Data Documentation

int geomerative.RStrip.type = RGeomElem.TRISTRIP

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