*body_split_with_points

Split a set of solids or surfaces along a spline constructed from a series of specified points.

Syntax

*body_split_with_points entity_type mark_id splinepoints size options

Type

HyperMesh Tcl Modify

Description

Splits surfaces or solids using swept lines.

Inputs

entity_type
The type of entities being split: solids or surfaces.
mark_id
The mark that contains the entities being split.
splinepoints
An array of X, Y, Z coordinates for a series of points. HyperMesh uses these points to generate the splitting surface.
size
The number of entries in the splinepoints argument.
options
Determines the extent of the split:
0 - HyperMesh constructs the splitting surface strictly within the boundaries of the selected points (3 points produce a triangular splitting surface, even in a solid cube).
1 - The splitting surface extends beyond the chosen points to the full extent of the selected solids/surfaces (so 3 points would create a quadrilateral splitting surface within a solid cube).

Examples

To split the solid with ID 1 along a surface passing through points (1, 2, 3), (4, 5, 6),and (7, 8, 9), without extending the cutting surface:
*createmark solids 1 1
*createdoublearray 9 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0
*body_split_with_points solids 1 1 9 0

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}