There are no problems with ordinary graphic primitives, but I don’t quite understand how to make a 3D model of a figure. If there is a pentagon at the base of the pentahedral prism, then how to connect it with the height of the prism? Or how to make a parametric model of a given prism using an object matrix?

No need to paint.

    1 answer 1

    The pentahedral prism is very easily represented using the vertex-triangle approach.

    The basis of such a model can obviously be represented in the form of 3 triangles connected in series in the triangle strip , that is, like ABDE in this image, point C should lie on the side of AE .

    Each of the vertical sides of the prism is modeled using two triangles connected in a similar way.


    Accordingly, all you have to do is arrange the vertices correctly and correctly indicate the indices of the corresponding triangles.

    About the part of the question related to parametric modeling, unfortunately, I can not say anything, because what is the "object matrix" I imagine rather poorly. I think there will be people here who know about the subject of САПР , which can tell you.

    • that is, after placing the vertices, it will look like this: shkolo.ru/pryamaya-prizma ? - gvenog
    • 2
      @Котик_хочет_кушать probably knows everything !!! O_o !!! - Anton Mukhin