Tapered square shape

Home Forums Problems and solutions in GDL Object design Tapered square shape

This topic contains 1 reply, has 2 voices, and was last updated by  Péter Baksa 2 weeks, 5 days ago.

  • Author
    Posts
  • #4345

    James Murray
    Participant

    Is there a shape that can build a tapered square profile that renders correctly in OpenGL?

    As far as I can tell, all the shapes with 0, 1 status (PYRAMID, SWEEP, TUBE, etc) render like it is assumed the shape is rounded. Same for MASS and HPRISM_.

    The attached image is a SWEEP on top of a PRISM_. The tapered portion should have square corners like the base, not be ‘smoothed’ or whatever.

  • #4347

    Péter Baksa
    Participant

    Hi,

    pyramid works for me:

    addz 5
    cutplane
    del 1
    
    pyramid 4, 10, 1 + 4 + 16,
    		-1, -1, 0,
    		 1, -1, 0,
    		 1,  1, 0,
    		-1,  1, 0
    
    cutend

    Péter Baksa
    Software Engineer, Library Team
    GRAPHISOFT SE

You must be logged in to reply to this topic.