pfEdge(3pf) OpenGL Performer 3.2.2 libpf C Reference Pages pfEdge(3pf)NAME
pfNewEdge, pfGetEdgeClassType, pfGetEdgeContCurve, pfEdgeContCurve,
pfGetEdgeDisCurve, pfEdgeDisCurve, pfGetEdgeBoundary, pfEdgeBoundary,
pfEdgeBoundaryDir - Trim curve
FUNCTION SPECIFICATION
#include <Performer/pf.h>
pfEdge * pfNewEdge(void *arena);
pfType * pfGetEdgeClassType(void);
pfCurve2d * pfGetEdgeContCurve(pfEdge *edge);
void pfEdgeContCurve(pfEdge *edge, pfCurve2d *c);
pfDisCurve2d * pfGetEdgeDisCurve(pfEdge *edge);
void pfEdgeDisCurve(pfEdge *pfDisCurve2d *d);
int pfGetEdgeBoundary(pfEdge *edge);
void pfEdgeBoundary(pfEdge *edge, int boundaryId);
void pfEdgeBoundaryDir(pfEdge *edge, int dir);
PARENT CLASS FUNCTIONS
The OpenGL Performer class pfEdge is derived from the parent class
pfObject, so each of these member functions of class pfObject are also
directly usable with objects of class pfEdge. Casting an object of class
pfEdge to an object of class pfObject is taken care of automatically.
This is also true for casts to objects of ancestor classes of class
pfObject.
void pfUserDataSlot(pfObject *obj, int slot, void *data);
void pfUserData(pfObject *obj, void *data);
void* pfGetUserDataSlot(pfObject *obj, int slot);
void* pfGetUserData(pfObject *obj);
int pfGetNumUserData(pfObject *obj);
int pfGetNamedUserDataSlot(const char *name);
const char* pfGetUserDataSlotName(int slot);
int pfGetNumNamedUserDataSlots(void);
int pfDeleteGLHandle(pfObject *obj);
Since the class pfObject is itself derived from the parent class
pfMemory, objects of class pfEdge can also be used with these functions
designed for objects of class pfMemory.
pfType * pfGetType(const void *ptr);
Page 1
pfEdge(3pf) OpenGL Performer 3.2.2 libpf C Reference Pages pfEdge(3pf)
int pfIsOfType(const void *ptr, pfType *type);
int pfIsExactType(const void *ptr, pfType *type);
const char * pfGetTypeName(const void *ptr);
int pfRef(void *ptr);
int pfUnref(void *ptr);
int pfUnrefDelete(void *ptr);
int pfUnrefGetRef(void *ptr);
int pfGetRef(const void *ptr);
int pfCopy(void *dst, void *src);
int pfDelete(void *ptr);
int pfIsFluxed(void *ptr);
int pfCompare(const void *ptr1, const void *ptr2);
void pfPrint(const void *ptr, uint which, uint verbose,
FILE *file);
void * pfGetArena(void *ptr);
DESCRIPTION
pfEdge defines a trim curve in UV space. It can be either a discrete or
continuous curve. For the purpose of topology construction (pfTopo), an
edge contains an index to the boundary list in the class pfTopo.
pfNewEdge creates and returns a handle to a pfEdge. arena specifies a
malloc arena out of which the pfEdge is allocated or NULL for allocation
off the process heap. pfEdges can be deleted with pfDelete.
pfGetEdgeClassType returns the pfType* for the class pfEdge. the pfType*
returned by pfGetEdgeClassType is the same as the pfType* returned by
invoking pfGetType on any instance of class pfEdge. Because OpenGL
Performer allows subclassing of built-in types, when decisions are made
based on the type of an object, it is usually better to use pfIsOfType to
test if an object is of a type derived from a Performer type rather than
to test for strict equality of the pfType*'s.
pfGetEdgeBoundary returns the boundary id of the boundary associated with
this edge.
pfGetEdgeBoundaryDir returns the boundary direction set in
pfEdgeBoundaryDir.
pfGetEdgeContCurve returns a pointer to the continuous 2D curve
representing this edge. Returns NULL if the edge is not represented by a
continous curve.
pfGetEdgeDisCurve returns a pointer to the discrete 2D curve representing
this edge. Returns NULL if the edge is not represented by a discrete
curve.
pfEdgeContCurve sets the continuous curve to be c. It also references c.
pfEdgeDisCurve sets the discrete curve to be d. It also references d.
pfGetEdgeBoundary returns the boundary id of the boundary associated with
Page 2
pfEdge(3pf) OpenGL Performer 3.2.2 libpf C Reference Pages pfEdge(3pf)
this edge.
pfEdgeBoundary sets the boundary id.
pfEdgeBoundaryDir when the value is -1, it indicates that if we evaluate
(3D space) this trim curve from beginT to endT, the XYZ points are in the
reverse order of the 'xyzBoundary' in the corresponding boundary. When
the value is 1, if indicates that the order is the same.
pfGetEdgeBoundaryDir returns the boundary direction set in
pfEdgeBoundaryDir.
SEE ALSO
pfTopo, pfCurve2d, pfDisCurve2d
Page 3