BspSrf2Polygons
Section: C Library Functions (3)
Updated: IRIT Version 6.0
Index
Return to Main Contents
NAME
BspSrf2Polygons()
SYNOPSIS
cagd_lib/bsp2poly.c:50
CagdPolygonStruct *BspSrf2Polygons(CagdSrfStruct *Srf,
int FineNess,
CagdBType ComputeNormals,
CagdBType FourPerFlat,
CagdBType ComputeUV)
DESCRIPTION
Routine to convert a single Bspline surface to set of triangles
approximating it. FineNess is a fineness control on result and the larger
is more triangles may result. A value of 10 is a good start value.
NULL is returned in case of an error, otherwise list of CagdPolygonStruct.
This routine looks for C1 discontinuities in the surface and splits it
into C1 continuous patches to invoke BspC1Srf2Polygons to gen. polygons.
PARAMETERS:
Srf: To approximate into triangles.
FineNess: Control on accuracy, the higher the finer.
ComputeNormals: If TRUE, normal information is also computed.
FourPerFlat: If TRUE, four triangles are created per flat surface.
If FALSE, only 2 triangles are created.
ComputeUV: If TRUE, UV values are stored and returned as well.
FUNCTION RETURN VALUE
CagdPolygonStruct *: A list of polygons with optional normal and/or
UV parametric information.
NULL is returned in case of an error.
SEE ALSO
BzrSrf2Polygons,
IritSurface2Polygons,
IritTrimSrf2Polygons,
,
SymbSrf2Polygons,
TrimSrf2Polygons,
ORIGIN
(C) Copyright 1989/90-95 Gershon Elber, Technion, IIT
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- PARAMETERS:
-
- FUNCTION RETURN VALUE
-
- SEE ALSO
-
- ORIGIN
-
This document was created by
man2html,
using the manual pages.
Time: 07:28:01 GMT, July 20, 2024