This tutorial will take you step-by-step through an example from our Documentation. In this example, we’ll learn how to variably modify the properties of geometry using distance data and our Ramp block. See Introduction to the Ramp Block for more information on ramping.
Following best practices, all blocks are renamed by double-clicking on the name and made into variables by right-clicking on the block header.
Step 01: Create a volume to fill with a Voronoi Lattice.
Add a Box block to define the Design Space.
Step 02: Fill the Design Space variable with Random Points.
The Random Points in Body block will generate points within the Box. These points won't quite be the center points of each Voronoi Cell, but they ultimately spawn the 3-Dimensional Voronoi Cells. These points are on average, consistently placed.
Step 03: Fill the Design Space variable with a beam-based Voronoi Lattice.
The Voronoi Volume Lattice block will produce a Lattice with Voronoi Cells that are on average similar in size. The seed points generated above will be used, however a mesh is not necessary in this example.
Step 04: To variably modify the Voronoi Cell density, we will use a Ramp block to modify the Random Point Spacing.
To do this, we must create an object that will act as the "modifier". In this example, we use a Plane from Normal block, placed at the base of our Box. From this plane, we'll take the Distance Field from 0 mm to 10 mm as our In Min and In Max, respectively. These values drive a new domain of values that correspond to random points spacing. In this example, all points at the base of the Plane (0mm) or less will have a point spacing of 0.1 mm. All points that are 10 mm or greater will have a point spacing of 1.0 mm.
See Introduction to the Ramp Block for more information on ramping.
Step 05: Ramp the point spacing.
Fill the Design Space with variably spaced points by inserting the Modifier (Ramp) block into the Point Spacing input. To create a variable density Voronoi Lattice, simply insert the Variable Points into the Seed Points input.
Step 06: Create a variable density Voronoi Lattice.
To create a variable density Voronoi Lattice, simply insert the Variable Points into the Seed Points input.
nTop Version 2.1.2 - Methods and interface may have changed in different versions.
See the attached file for the complete workflow.