AngelCAD  1.5-00
Public Member Functions | List of all members
pface Class Reference

Polyhedron face. More...

#include <angelcad.h>

Public Member Functions

 pface (uint iv1, uint iv2, uint iv3)
 polyhedron face constructor More...
 
 pface (uint iv1, uint iv2, uint iv3, uint iv4)
 polyhedron face constructor More...
 
uint nvert () const
 number of vertices in face More...
 
uint vindex (uint iv) const
 polyhedron vertex index for face index More...
 

Detailed Description

Polyhedron face.

A pface represents a single face of a polyhedron. It contains 0-based indices referring to the polyhedron vertices.
When viewed from outside the polyhedron, a pface must list its vertices in CCW order.

Constructor & Destructor Documentation

◆ pface() [1/2]

pface::pface ( uint  iv1,
uint  iv2,
uint  iv3 
)

polyhedron face constructor

Parameters
iv1uint, polyhedron vertex index
iv2uint, polyhedron vertex index
iv3uint, polyhedron vertex index

◆ pface() [2/2]

pface::pface ( uint  iv1,
uint  iv2,
uint  iv3,
uint  iv4 
)

polyhedron face constructor

Parameters
iv1uint, polyhedron vertex index
iv2uint, polyhedron vertex index
iv3uint, polyhedron vertex index
iv4uint, polyhedron vertex index

Member Function Documentation

◆ nvert()

uint pface::nvert ( ) const

number of vertices in face

Returns
uint, number of vertices in face

◆ vindex()

uint pface::vindex ( uint  iv) const

polyhedron vertex index for face index

Parameters
ivuint, face index
Returns
uint, polyhedron face index

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