*solids_create_from_surfaces
Syntax
*solids_create_from_surfaces surfs_markmask depth_mode depth_level comp_mode
Type
HyperMesh Tcl Modify Command
Description
Inputs
- surfs_markmask
- The mark containing the surfaces from which you wish to create solids.
- depth_mode
- Defines an algorithm of creating solids in closed volumes defined by selected surfaces set:
- depth_level
- The number of levels (as defined by depth_mode 0) used to create solids. If the value is -1, then solids are created in all closed volumes defined by the input set of surfaces.
- comp_mode
- 0 - Solids are created in the current component and boundary surfaces are moved to the same component.
Examples
Suppose you have two spheres: a surface with ID 1 being a larger outer sphere and a surface with ID 2 being the smaller sphere inside. To create single solid that has the larger sphere as its outer boundary and the smaller sphere as the boundary of the cavity inside, and place the results in the surfaces component:
*createmark surfaces 1 1 2
*solids_create_from_surfaces 1 4 0 2
or
*solids_create_from_surfaces 1 0 1 2
To create 2 solid spheres--one of them as in previous example, another inside the cavity—use:
*solids_create_from_surfaces 1 0 2 2
Errors
None.