*voxel_lattice_hex_mesh_add_planar_constraint
Adds a planar constraint to the voxel session.
Syntax
*voxel_lattice_hex_mesh_add_planar_constraint base_x base_y base_z normal_x normal_y normal_z normal_side
Type
HyperMesh Tcl Modify Command
Description
Adds a planar constraint to the voxel session. This restricts voxel creation to one side of the plane. Any number of planar constraints may be added. Voxel elements are created only in the regions that satisfy all of the constraints.
This must be preceeded by a call to *voxel_lattice_hex_mesh_init and must be followed by a call to *voxel_lattice_hex_mesh_create.
Inputs
- base_x
- The plane base x-coordinate.
- base_y
- The plane base y-coordinate.
- base_z
- The plane base z-coordinate.
- normal_x
- The plane normal x-coordinate.
- normal_y
- The plane normal y-coordinate.
- normal_z
- The plane normal z-coordinate.
- normal_side
- 1 - Constrain to plane normal side.
Example
To create voxels of size 10 for include components 100-110 and exclude components 200-203, with a planar constraint at 500,0,0 along the positive x-direction:
*voxel_lattice_hex_mesh_init 10
*voxel_lattice_hex_mesh_fill_voids 0
*createmark comps 1 100-110
*voxel_lattice_hex_mesh_add_entities comps 1 1
*createmark comps 2 200-203
*voxel_lattice_hex_mesh_remove_entities comps 2 1
*voxel_lattice_hex_mesh_add_planar_constraint 500 0 0 501 0 0 1
*voxel_lattice_hex_mesh_create
*voxel_lattice_hex_mesh end
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2019.1