*body_split_with_morphed_lines
Splits surfaces or solids using swept lines.
Syntax
*body_split_with_morphed_lines entity_type mark_id list_id coords coords_size target_type options
Type
HyperMesh Tcl Modify
Description
Splits surfaces or solids using swept lines.
Inputs
- entity_type
- The type of entities to split. Valid values are solids or surfaces.
- mark_id
- The ID of the mark containing the entities to split. Valid values are 1 and 2..
- list_id
- The ID of the list containing the lines from which to to generate the swept surface used for splitting.
- coords
- The array of coordinates or offsets used to indicate sweeping direction of line ends. The values in the array are given as a sequence of x, y, z values for either the offset, or the absolute value of the swept line ends (the particular usage depends on the target_type parameter value). The coord_size parameter gives the number of values used in the array.
- coords_size
- The array of coordinates or offsets used to indicate the sweeping direction of the line ends. The values in the array are given as a sequence of x, y, z values for either offset or absolute value of swept line ends (the particular usage depends on the target_type parameter value). The coord_size parameter gives the number of values used in the array.
- target_type
- Controls the way that the values given by coords indicate sweeping direction of line
ends. Permissible values of this parameter are 0, 1, 2, 3, 4, 5, 6, and 7:
- 0 - The first 3 values of coords are used as x, y, z values of the offset of the line start point; the next 3 values, if present, are used as the offset of the line end point. If the second trio of values is not provided then the same offset is used for both start and end points.
- 1 - The first 3 values of coords are used as x, y, z values of the position of swept line start. The second set of x, y, z values is used as the position of swept line end point. If only one point is given on input then the position of the endpoint is calculated to give the same offset from original line end point as the start point (line translation).
- 2 - The same as 0.
- 3 - The values in coords are used as positions of swept line end points. The choice of points’ order is made automatically to minimize swept surface distortion.
- (n+4) - Adding 4 to above values (e.g. using 4-7) results in creating splitting lines without surface creation.
- options
- 0 - The swept surface is used as-is.
Examples
To split solid 1 with the surface swept in x direction from the line formed by combining
lines 10 and
11:
*createmark solids 1 1
*createdoublearray 3 1.0 0.0 0.0
*creatlist lines 1 10 11
*body_split_with_morphed_lines solids 1 1 1 3 0 1
Errors
Incorrect usage results in a Tcl error. To
detect errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}