Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ PEXSetCurveApprox(3) — Open3D 4.96

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PEXSetCurveApprox(3)  —  Subroutines

Name

PEXSetCurveApprox - Set Curve Approximation Method

Synopsis

void PEXSetCurveApprox(Display ∗display, XID resource_id, PEXOCRequestType req_type, int method, double tolerance)

Arguments

displayA pointer to a display structure returned by a successful XOpenDisplay call. 

resource_idThe resource identifier of the renderer or structure. 

req_typeThe request type for the output command (PEXOCRender, PEXOCStore, PEXOCRenderSingle or PEXOCStoreSingle).

methodThe curve approximation method (PEXApproxImpDep, PEXApproxConstantBetweenKnots, PEXApproxWCChordalSize, PEXApproxNPCChordalSize, PEXApproxDCChordalSize, PEXCurveApproxWCChordalDev, PEXCurveApproxNPCChordalDev, PEXCurveApproxDCChordalDev, PEXApproxWCRelative, PEXApproxNPCRelative, PEXApproxDCRelative).

toleranceThe curve approximation tolerance (specific to each method). 

Returns

None

Description

This function creates an output primitive attribute which sets the curve approximation attribute.  If the specified method is not supported, an implementation-dependent method (method 1) is used.  Supported values for curve approximation are inquirable via PEXGetEnumTypeInfo. The tolerance value is provided to indicate the desired accuracy of the approximation, and is used in different ways for the different methods.  See Chapter 4: Pipeline Contexts for more information about tolerance values. 

Errors

BadPEXRenderer
The specified renderer resource identifier is invalid.

BadPEXStructure
The specified structure resource identifier is invalid.

See Also

PEXSetIndividualASF, PEXGetEnumTypeInfo

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026