ADC Home > Reference Library > Technical Q&As > Legacy Documents > Graphics & Imaging >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

NOTE: This Technical Q&A has been retired. Please see the Technical Q&As page for current documentation.

Default Number of Surface Planes

Q: When rendering a QuickDraw 3D 1.5 file containing objects such as cylinders and ellipsoids, the default number of surface planes is much higher than in QD3D version 1.0.6. While this looks nice, it requires more memory. Is there a way in my application to limit the "resolution" (i.e., the number of surface planes) used by QD3D 1.5?

A: You can use a subdivision style to get control over the number of faces generated. For example, you can create a subdivision style object as follows:

theSubdivisionStyleData.method = kQ3SubdivisionMethodScreenSpace;
theSubdivisionStyleData.c1 = (float)20;
theSubdivisionStyleData.c2 = (float)20;
mSubdivisionStyle = Q3SubdivisionStyle_New(&theSubdivisionStyleData);

You can then submit the subdivision style in your rendering loop before you submit your geometry.

[Jul 11 1997]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.