geomerative index
Name RMesh
Examples
None available
Description RMesh is a reduced interface for creating, holding and drawing meshes. Meshes are a group of tiangle strips (RStrip).
Constructors
RMesh();
RMesh(m);
RGeomElem();
Parameters
RMesh   m, the object of which to make a copy
Fields
strips   Array of RStrip objects holding the contours of the polygon.

Methods
addStrip ( )   Use this method to create a new strip.

countStrips ( )   Use this method to count the number of strips in the mesh.

draw ( )   Use this method to draw the mesh.

getArea ( )   Use this method to get the area of an element.

getBounds ( )   Use this method to get the bounding box of the element.

getCenter ( )   Use this method to get the center point of the element.

getCenteringTransf ( )   Use this method to get the transformation matrix in order to fit and center the element on the canvas. Scaling and translation damping parameters are available, in order to create animations.

getCentroid ( )   Use this method to get the centroid of the element.

getCurveLength ( )   Use this to return the points on the curve. It returns the points in the way of an array of RPoint.

getCurveLengths ( )   Use this to return the points on the curve. It returns the points in the way of an array of RPoint.

getHandles ( )   Use this to get the vertices of the mesh. It returns the points in the way of an array of RPoint.

getHeight ( )   Use this method to get the height of the element.

getPoints ( )   Use this to get the vertices of the mesh. It returns the points in the way of an array of RPoint.

getType ( )   Use this method to get the type of element this is.

getWidth ( )   Use this method to get the width of the element.

getX ( )   Use this method to get the x (left side position) of the element.

getY ( )   Use this method to get the y (left side position) of the element.

isIn ( )   Use this method to know if the shape is inside a graphics object. This might be useful if we want to delete objects that go offscreen.

rotate ( )   Use this to apply a rotation to the point.

scale ( )   Use this to scale the point.

transform ( )   Transform the geometric object to fit in a rectangle defined by the parameters passed.

translate ( )   Use this to apply a translation to the point.

Usage Geometry
Related RStrip