mpacts.geometrygenerators. quadgeometries

Some simple and common geometries with quads.
Use transformations to put a geometry elsewhere if needed.

In order to be able to use this module import it like this:

import mpacts.geometrygenerators.quadgeometries
#or assign it to a shorter name
import mpacts.geometrygenerators.quadgeometries as qua
mpacts.geometrygenerators.quadgeometries.create_Vfunnel(depth, topwidth, botwidth, Vheight, channelheight)

creates a V-funnel with center = 0, 0, 0 at the center of the top opening

mpacts.geometrygenerators.quadgeometries.create_box(sizex, sizey, sizez, top=True, invert=False, bottom=True)

creates a simple box with center = 0, 0, 0 and given size

mpacts.geometrygenerators.quadgeometries.create_plane(width, height, perpendicular_to='y', invert=False)

creates a plane perpendicular to x, y or z with given dimensions. Use transformations to move/rotate this plane

mpacts.geometrygenerators.quadgeometries.create_subdivided_plane(width, height, N, invert=False)

creates a rectangular plane that is subdivided by quads. Use transformations to move/rotate this plane N contains a tuple with number of quads per side lengths. The number of controlPoints per dimension will be N+1 Note that by setting N=(1,1), the same functionality as create_plane(...) with perpendicular_to=”y” is obtained!