Bug 947 : Implement support for complex shapes when using the OpenGL renderer
Last modified: 2008-10-11 13:03




Status:
ASSIGNED
Resolution:
-
Priority:
P2
Severity:
normal

 

Reporter:
fry
Assigned To:
fry

Attachment Type Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Votes: 0    Show votes for this bug    Vote for this bug

Summary: Implement support for complex shapes when using the OpenGL renderer
Comments:
URL: Please use attachments to demonstrate the bug you are reporting.
   
 



Description:   Opened: 2008-10-11 13:03
When drawing complex shape data with OpenGL, you might see the error
message "This renderer cannot currently handle concave shapes, or shapes
with holes."

This is a matter of taking the time to override the addPolygonTriangles()
method in PGraphics3D to instead use the OpenGL tessellator. The
tessellator is already use for rendering font data with textMode(SHAPE) so
it's a matter of a straightforward of adapting that code for broader use.
Not technically impossible, but requires an afternoon's work to implement.