pw:: VoxelSolver

The voxel solver mode type

Derives From

pw::Object pw::Mode pw::Solver

Notes

To create a mode of this type, use the pw::Application.begin command with the mode VoxelSolver specified, like this:

set solver [pw::Application begin VoxelSolver $entities]
Summary
The voxel solver mode type
This action gets the current stage of the voxel solver.
This action gets the current entity of the voxel solver.
This attribute controls whether the pw::Solver.run command will throw an error if initialization produces an incomplete grid.
Some variations of the voxel solver will invoke T-Rex and isotropic tet generation.

Instance Actions

getCurrentStage

$solver getCurrentStage

This action gets the current stage of the voxel solver.

Parameters

This action has no parameters.

Returns

This action returns the current stage; None | PushAttributes | TRex | Isotropic

getCurrentEntity

$solver getCurrentEntity

This action gets the current entity of the voxel solver.

Parameters

This action has no parameters.

Returns

This action returns a pw::Entity object that is currently being solved on.

Instance Attributes

AllowIncomplete

$solver get/setAllowIncomplete value

This attribute controls whether the pw::Solver.run command will throw an error if initialization produces an incomplete grid.  Some variations of the voxel solver will invoke T-Rex and isotropic tet generation.  Failures can occur during T-Rex initialization when the isotropic tet generation failed.  This setting will retain the T-Rex cells when such failures occur.

Type

This attribute is a boolean value.

Default

The default for this attribute is False, which means the pw::Solver.run command will throw an error if an incomplete block is created.

StopWhenFullLayersNotMet

$solver get/setStopWhenFullLayersNotMet value

Some variations of the voxel solver will invoke T-Rex and isotropic tet generation.  This attribute controls whether the pw::Solver.run command will stop when the requested number of full layers is not met by the solver.

Type

This attribute is a boolean value.

Default

The default for this attribute is False, which means the pw::Solver.run command will not stop if the requested number of full alyers is not met.

$solver getCurrentStage
This action gets the current stage of the voxel solver.
$solver getCurrentEntity
This action gets the current entity of the voxel solver.
$solver get/setAllowIncomplete value
This attribute controls whether the pw::Solver.run command will throw an error if initialization produces an incomplete grid.
$solver run ?-entities ents? ?< method | steps >?
This action runs the solver.
$solver get/setStopWhenFullLayersNotMet value
Some variations of the voxel solver will invoke T-Rex and isotropic tet generation.
Base type for all glyph types
The mode base type
The solver mode type
pw::Application begin ?-mode_specific_flags? mode ?entities?
This action begins a mode in the application.
Entity type
A boolean is represented as a 0 or 1, with 0 being false and 1 being true.