Skip to main content

About this Block

What it does: Creates an unbounded Scalar Field of a dimensionless Diamond Triply Periodic Minimal Surface (TPMS). The following equation defines the field:
 sin(x)*sin(y)*sin(z)+sin(x)*cos(y)*cos(z)+cos(x)*sin(y)*cos(z)+cos(x)*cos(y)*sin(z) = 0
The Cell size input specifies the size of the period for a single repetition in x, y, and z. The amplitude of the distance field scales from -1 to 1 through one period of the pattern. Common uses: Scalar Field input for a Ramp block.
Tips
  • View the field by using the Field Viewer (hot-key f).
  • The values in the Diamond Field are unitless and do not represent an implicit body. Alternatively, the Diamond Body block creates a similar field with distance units and an approximate distance field.
Diamond Field Create an unbounded Scalar Field of a dimensionless Diamond periodic pattern, with values ranging from -1 to 1.

Inputs

NameTypeDescription
Cell sizeScalarSize of a single period of the diamond function. amplitude is normalized between -1 and +1.

Outputs