4 Managing Geometric Objects

4 Q3Geometry_GetType

You can use the Q3Geometry_GetType function to get the type of a geometric object.

TQ3ObjectType Q3Geometry_GetType (TQ3GeometryObject geometry);
geometry A geometric object.

DESCRIPTION


The Q3Geometry_GetType function returns, as its function result, the type of the geometric object specified by the geometry parameter. The types of geometric objects currently supported by QuickDraw3D are defined by these constants:

kQ3GeometryTypeBox
kQ3GeometryTypeGeneralPolygon
kQ3GeometryTypeLine
kQ3GeometryTypeMarker
kQ3GeometryTypeMesh
kQ3GeometryTypeNURBCurve
kQ3GeometryTypeNURBPatch
kQ3GeometryTypePoint
kQ3GeometryTypePolygon
kQ3GeometryTypePolyLine
kQ3GeometryTypeTriangle
kQ3GeometryTypeTriGrid
If the specified geometric object is invalid or is not one of these types, Q3Geometry_GetType returns the value kQ3ObjectTypeInvalid.

DESCRIPTION

3D Graphics Programming with QuickDraw 3D - 21 OCT 1995

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker