Faces

 

Surface geometry in VX is stored as using a proprietary "boundary representation" (B-Rep) scheme. By this we mean that a surface defines the underlying shape for a "trimmed face."
 

Most operations in a solid modeler.
 

/* Get pointer to topology table. */

err = CdTargUpdTt(&pTopTab);

if (err) goto F_END;

 

/* Create a new shape in the topology table. */

err = VxShapeMk(pTopTab, &idShape);

if (err) goto F_END;

 

/* Create a new shell in this shape. */

err = VxShlMk(pTopTab, ADDED, 2, idShape, &idShl);

if (err) goto F_END;

 

/* Add new surface to new shell. */

err = VxTrmFaceMk(pTopTab, idShl, pSrf, &idFace);

if (err) goto F_END;

 

/* Create a feature. */

err = CdTargAddFtr( idx_in, ftrName, 0, V_NULL, &ftrOh );

if (err) goto F_END;

 

/* Create a label for face. */

posId = 1;

err = CdLblFaceNew(pTopTab, idShl, idFace, V_NULL, &posId); if (err)

goto F_END;

 

/* update target object's b-rep from the active topology table */

err=CdTargUpdBrep();

if (err) goto F_END

 

Return to VX CAD/CAM Index