AlphaPrism is in active development: features may change and you may run into bugs. Keep backups of your work.Known issuesReport a bug
Skip to content

Gravity ​

The part's own weight.

Gravity: Study body compared with Whole body loaded by its weight.
Prism help example. Schematic help example; colors and deformation are illustrative, not results from a solved study. Include the part's own weight in the study. The weight comes from the material density, so assign a material first. It acts on the whole body. View full size

In the app

The part's own weight. Gravity pulls along the chosen direction (an axis, a custom vector, or an edge or plane); 1 g is Earth gravity.

How to use ​

  1. Choose Gravity. Its panel opens on the right with numbered steps; anything you selected first fills matching inputs.
  2. Pick Direction taken from (edge, plane or face) (face, edge, plane), optional.
  3. Adjust the settings and check the preview in the viewport.
  4. Confirm in the panel to apply, or cancel to leave the model unchanged. Applied changes are one undo step.

Settings ​

SettingDefaultValues
Gravity1 g0 to 100 g
Direction-Z+X, +Y, +Z, -X, -Y, -Z, Custom: type X, Y, Z, Along an edge, or a plane's normal
Direction X0-1000000000 to 1000000000
Direction Y0-1000000000 to 1000000000
Direction Z-1-1000000000 to 1000000000
Tilt from the face normal (0° straight in, 90° along the face)30 °0 to 90 °
Turn around the face normal0 °-360 to 360 °
Reverse the directionOff
The force is the total over all picked facesOn

Script it ​

Command name sim_gravity. See Python scripting and the command reference.

python
import cadkit as cad

cad.run("sim_gravity", gravity=1, direction="-Z")