Home

POLYGON_VERTEX Class Reference
[Faceting]

Defines a vertex on a polygon. More...

#include <ppm.hxx>

Inheritance diagram for POLYGON_VERTEX:

Inheritance graph
[legend]
Collaboration diagram for POLYGON_VERTEX:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const af_node_instance * data ()
 Returns the data.
void destroy (VERTEX_TEMPLATE *node_template)
 Destroys itself.
logical get_parameter_data (VERTEX_TEMPLATE *vertemp, parameter_token partok, double *nodedata)
 Gets the parameter data of the node and returns it in the array.
POLYGON_VERTEXnext ()
 Returns a pointer to the next vertex in a polygon.
logical normal (VERTEX_TEMPLATE *vertemp, SPAunit_vector &uv)
 Returns the normal of the vertex.
logical point (SPAposition &pt)
 Returns the position of the vertex.
 POLYGON_VERTEX (VERTEX_TEMPLATE *node_template)
 C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.
 POLYGON_VERTEX (POLYGON_VERTEX *pv)
 C++ copy constructor requests memory for this object and populates it with the data from the object supplied as an argument.
void print (VERTEX_TEMPLATE *vt=0, FILE *to=stderr)
 Prints the polygon vertex.
void set_normal (VERTEX_TEMPLATE *vertemp, const SPAunit_vector &uv)
 Sets the normal of the vertex.
void set_parameter_data (VERTEX_TEMPLATE *vertemp, parameter_token partok, double *nodedata)
 Sets the parameter data as specified in the array.
void set_point (const SPAposition &pt)
 Sets the position of the vertex.


Detailed Description

Defines a vertex on a polygon.


Note: This class is not derived from ENTITY.

See also:
POLYGON, POLYGON_POINT_MESH_MANAGER

Constructor & Destructor Documentation

POLYGON_VERTEX::POLYGON_VERTEX ( POLYGON_VERTEX pv  ) 

C++ copy constructor requests memory for this object and populates it with the data from the object supplied as an argument.



Parameters:
pv vertex pointer.

POLYGON_VERTEX::POLYGON_VERTEX ( VERTEX_TEMPLATE node_template  ) 

C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.



Parameters:
node_template vertex template - node template.


Member Function Documentation

const af_node_instance* POLYGON_VERTEX::data (  )  [inline]

Returns the data.

void POLYGON_VERTEX::destroy ( VERTEX_TEMPLATE node_template  ) 

Destroys itself.



Parameters:
node_template vertex template - node template.

logical POLYGON_VERTEX::get_parameter_data ( VERTEX_TEMPLATE vertemp,
parameter_token  partok,
double *  nodedata 
)

Gets the parameter data of the node and returns it in the array.



Parameters:
vertemp vertex template.
partok parameter token.
nodedata node data cell type.

POLYGON_VERTEX* POLYGON_VERTEX::next (  ) 

Returns a pointer to the next vertex in a polygon.

logical POLYGON_VERTEX::normal ( VERTEX_TEMPLATE vertemp,
SPAunit_vector uv 
)

Returns the normal of the vertex.



Role: If the return value is FALSE, the method could not determine the normal.

Parameters:
vertemp vertex template.
uv normal.

logical POLYGON_VERTEX::point ( SPAposition pt  ) 

Returns the position of the vertex.



Role: If the return value is FALSE, the method could not determine the position.

Parameters:
pt point.

void POLYGON_VERTEX::print ( VERTEX_TEMPLATE vt = 0,
FILE *  to = stderr 
)

Prints the polygon vertex.



Parameters:
vt vertex template.
to file to print to.

void POLYGON_VERTEX::set_normal ( VERTEX_TEMPLATE vertemp,
const SPAunit_vector uv 
)

Sets the normal of the vertex.



Parameters:
vertemp vertex template.
uv normal.

void POLYGON_VERTEX::set_parameter_data ( VERTEX_TEMPLATE vertemp,
parameter_token  partok,
double *  nodedata 
)

Sets the parameter data as specified in the array.



Parameters:
vertemp vertex template.
partok parameter token.
nodedata node data cell type.

void POLYGON_VERTEX::set_point ( const SPAposition pt  ) 

Sets the position of the vertex.



Parameters:
pt point.