Operations

This section lists the operations that can be performed on Shape and PostOpObj. These operations can be used to modify the shape and position of a material-point-geometry. For example, here is how to rotate a material point geometry:

using PDMaterialPoints
cube = create(Cube(10.0), resolution=0.5, rand_=0.0)
cube_rotated = rotate(cube, angle=45, point=[0, 0, 0], vector_=[1, 0, 0])

This will create a cube and then rotate it 45 degrees around the x-axis.

Note that all the operations listed below are lazy and will be applied when create is called.