Geometry#

class ansys.mapdl.core.mapdl_geometry.Geometry(mapdl)[source]#

Pythonic representation of MAPDL CAD geometry

Contains advanced methods to extend geometry building and selection within MAPDL.

Methods

Geometry.area_select(items[, sel_type, ...])

Select areas using a sequence of items.

Geometry.areas([quality, merge])

List of areas from MAPDL represented as pyvista.PolyData.

Geometry.generate_surface([density, amin, ...])

Generate an all-triangular surface of the active surfaces.

Geometry.keypoint_select(items[, sel_type, ...])

Select keypoints using a sequence of items.

Geometry.line_select(items[, sel_type, ...])

Select lines using a sequence of items.

Geometry.volume_select(items[, sel_type, ...])

Select volumes using a sequence of items.

Attributes

Geometry.anum

Array of area numbers.

Geometry.keypoints

Keypoint coordinates

Geometry.knum

Array of keypoint numbers.

Geometry.lines

Active lines as a pyvista.PolyData

Geometry.lnum

Array of line numbers.

Geometry.n_area

Number of areas currently selected.

Geometry.n_keypoint

Number of keypoints currently selected.

Geometry.n_line

Number of lines currently selected.

Geometry.n_volu

Number of volumes currently selected.

Geometry.vnum

Array of volume numbers.