Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PEXSetSurfaceApprox(3)  —  Subroutines

Name

PEXSetSurfaceApprox - Set Surface Approximation Method

Synopsis

void PEXSetSurfaceApprox(Display ∗display, XID resource_id, PEXOCRequestType req_type, int method, double utolerance, double vtolerance)

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 surface approximation method (PEXApproxImpDep, PEXApproxConstantBetweenKnots, PEXApproxWCChordalSize, PEXApproxNPCChordalSize, PEXApproxDCChordalSize, PEXSurfaceApproxWCPlanarDev, PEXSurfaceApproxNPCPlanarDev, PEXSurfaceApproxDCPlanarDev, PEXApproxWCRelative, PEXApproxNPCRelative, PEXApproxDCRelative).

utoleranceThe surface approximation tolerance in the u direction. 

vtoleranceThe surface approximation tolerance in the v direction. 

Returns

None

Description

This function creates an output primitive attribute which sets the surface approximation method attribute.  If the specified method is not supported, PEXApproxImpDep is used. Supported values for surface approximation are inquirable via PEXGetEnumTypeInfo. The u and v tolerance values are provided to indicate the desired accuracy of the approximation, and are 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