Vertex#

class ansys.geometry.core.designer.vertex.Vertex(id: str, position: numpy.ndarray | ansys.geometry.core.typing.RealSequence, body: ansys.geometry.core.designer.body.Body)#

Bases: ansys.geometry.core.math.point.Point3D

Represents a single vertex of a body within the design assembly.

This class synchronizes to a design within a supporting Geometry service instance.

Parameters:
idstr

The unique identifier for the vertex.

positionnp.ndarray or RealSequence

The position of the vertex in 3D space.

Overview#

get_named_selections

Get all named selections that include this vertex.

id

Get the unique identifier of the vertex.

body

Get the body this vertex belongs to.

__repr__

Return a string representation of the vertex.

Import detail#

from ansys.geometry.core.designer.vertex import Vertex

Property detail#

property Vertex.id: str#

Get the unique identifier of the vertex.

property Vertex.body: ansys.geometry.core.designer.body.Body#

Get the body this vertex belongs to.

Method detail#

Vertex.get_named_selections() list[ansys.geometry.core.designer.selection.NamedSelection]#

Get all named selections that include this vertex.

Returns:
list[“NamedSelection”]

List of named selections that include this vertex.

Vertex.__repr__() str#

Return a string representation of the vertex.