The solid modeling of CNC engraving machining simulation system
by:Transon
2020-07-22
OpenGL provides a dozen three-dimensional entity model of the library function, these functions in the library of aux.
Common simple model such as sphere, cube, cylinder can be directly drawn using these functions.
But, in the application of engraving machine graphics tend to be complex, so all the models in the software are by organizing a small triangle and small rectangular form.
to determine the position of the entity and size
carving machining on the real requirement has the very strong position, and these relationships in the process of simulation animation in a constantly changing. OpenGL provides some translation, rotation and scaling of the object function, such as voidg - translation function lTranslatef( GLfloatx、GLfloaty GLfloatz) , can make the objects along the X, Y, Z axis any translation. Orthogonal projection transformation, by function voidglOrtho ( GLdoubleleft、GLdoubleright GLdoublebottom、GLdoubletop GLdoublenear GLdoublefar) To define a every for rectangular hexahedron. In a program to judge the maximum and minimum values of coordinates, according to the view's size appropriate scaling of the coordinate values.
to determine the position of the entity and size
carving machining on the real requirement has the very strong position, and these relationships in the process of simulation animation in a constantly changing. OpenGL provides some translation, rotation and scaling of the object function, such as voidg - translation function lTranslatef( GLfloatx、GLfloaty GLfloatz) , can make the objects along the X, Y, Z axis any translation. Orthogonal projection transformation, by function voidglOrtho ( GLdoubleleft、GLdoubleright GLdoublebottom、GLdoubletop GLdoublenear GLdoublefar) To define a every for rectangular hexahedron. In a program to judge the maximum and minimum values of coordinates, according to the view's size appropriate scaling of the coordinate values.
Custom message
Related Products