Andy k
Andy k

Reputation: 1116

How to show extrusion or polygon wireframe in GLscene

I am learning how to use GLscene and am trying to render a stack of planar polygons that are layered so the polygons are coloured according to the layer number and each layer has a specific height (z depth).

GLextrusion seems to be ideal to render the polygons but I need to turn the fill on and off of specific layers so that only the wireframes are rendered.

The problem is, when the material is set to lines, the polygons are criss crossed with triangles. This seems to happen with other object types as well.

Is there any way to render the polygon outlines as a true wireframe ?

Upvotes: 0

Views: 501

Answers (1)

Uwe Raabe
Uwe Raabe

Reputation: 47694

If nothing has changed in the recent versions of GLScene there is no setting for that. The only solution I can remember is adding a Lines object to the scene and use the polygon outline. Then switch the visibility of the extrusion object and the lines object(s) as needed.

BTW, the outline of an TGLExtrusionSolid can be taken from its Outline property. Thus the Lines object can be built automatically using this information.

Upvotes: 1

Related Questions