LegacyGeometry#

class ansys.mapdl.core.mapdl_geometry.LegacyGeometry(mapdl)#

Legacy Pythonic representation of the MAPDL CAD geometry.

This class contains advanced methods for extending geometry building and selection within MAPDL.

Methods

LegacyGeometry.area_select(items[, ...])

Select areas using a sequence of items.

LegacyGeometry.areas([quality, merge])

List of areas from MAPDL represented as a pyvista.PolyData object.

LegacyGeometry.generate_surface([density, ...])

Generate an all-triangular surface of the active surfaces.

LegacyGeometry.get_areas([quality, ...])

Get active areas from MAPDL represented as pyvista.PolyData or a list of pyvista.UnstructuredGrid.

LegacyGeometry.get_elements_per_area()

Get the number of elements meshed for each area.

LegacyGeometry.get_keypoints([...])

Obtain the keypoints geometry.

LegacyGeometry.get_lines([return_as_list])

Obtain line geometry

LegacyGeometry.get_volumes([return_as_list, ...])

Get active volumes from MAPDL represented as a pyvista.PolyData object or a list of pyvista.UnstructuredGrid objects.

LegacyGeometry.keypoint_select([items, ...])

Select keypoints using a sequence of items.

LegacyGeometry.keypoints()

Keypoint coordinates.

LegacyGeometry.line_select(items[, ...])

Select lines using a sequence of items.

LegacyGeometry.lines()

Active lines as a pyvista.PolyData object.

LegacyGeometry.volume_select(items[, ...])

Select volumes using a sequence of items.

Attributes

LegacyGeometry.anum

Array of area numbers.

LegacyGeometry.knum

Array of keypoint numbers.

LegacyGeometry.lnum

Array of line numbers.

LegacyGeometry.n_area

Number of areas currently selected.

LegacyGeometry.n_keypoint

Number of keypoints currently selected.

LegacyGeometry.n_line

Number of lines currently selected.

LegacyGeometry.n_volu

Number of volumes currently selected.

LegacyGeometry.vnum

Array of volume numbers.

LegacyGeometry.volumes

Obtain the volumes geometry