Skip to main content

Prime Mesh Python client library 2025 R2

MeshStackerParams

Last update: 10.09.2025

class ansys.meshing.prime.MeshStackerParams(model=None, origin=None, direction=None, lateral_defeature_tolerance=None, stacking_defeature_tolerance=None, max_offset_size=None, size_control_ids=None, seed_faces=None, delete_base=None, json_data=None, **kwargs)

Input parameters associated with the mesh stacker operations.

  • Parameters:

    model: Model : Model to create a MeshStackerParams object with default parameters.

    origin: Iterable[float], optional : Origin coordinate list of stacker.

    direction: Iterable[float], optional : Direction vector of stacker.

    lateral_defeature_tolerance: float, optional : Absolute lateral distance tolerance for stacker. If the lateral distance tolerance is not specified, a default tolerance value is calculated by stacker.

    stacking_defeature_tolerance: float, optional : Absolute stacking distance tolerance for stacker. If the stacking distance tolerance is not specified, a default tolerance value is calculated by stacker.

    max_offset_size: float, optional : Maximum stack size allowed during stacking. If the maximum stack size is not specified, it is set to global max size.

    size_control_ids: Iterable[int], optional : List of size control ids to be respected by stacker. Stacker respects all supported controls by default.

    seed_faces: Iterable[int], optional : List of faces whose edges need to be imprinted on the base face. If the faces are meshed, the mesh will be transferred to the base face.
    This is a beta parameter. The behavior and name may change in the future.

    delete_base: bool, optional : Option to delete base face at the end of stacking. The default is false.

    json_data: dict, optional : JSON dictionary to create a MeshStackerParams object with provided parameters.

Examples

>>> mesh_stacker_params = prime.MeshStackerParams(model = model)

Methods

Name Description
MeshStackerParams.print_default() Print the default values of MeshStackerParams object.
MeshStackerParams.set_default([origin, ...]) Set the default values of the MeshStackerParams object.

Attributes

Name Description
MeshStackerParams.delete_base Option to delete base face at the end of stacking.
MeshStackerParams.direction Direction vector of stacker.
MeshStackerParams.lateral_defeature_tolerance Absolute lateral distance tolerance for stacker.
MeshStackerParams.max_offset_size Maximum stack size allowed during stacking.
MeshStackerParams.origin Origin coordinate list of stacker.
MeshStackerParams.seed_faces List of faces whose edges need to be imprinted on the base face.
MeshStackerParams.size_control_ids List of size control ids to be respected by stacker.
MeshStackerParams.stacking_defeature_tolerance Absolute stacking distance tolerance for stacker.

Connect with Ansys