PointData#

class pyedb.grpc.database.geometry.point_data.PointData(pedb: pyedb.grpc.edb.Edb, core: ansys.edb.core.geometry.point_data.PointData)#

Class managing Point Data

Overview#

create

Create a new PointData object.

create_arc_point

Create a arc PointData object.

rotate

Rotate a point at a given center by a given angle.

move

Move the point.

x

X coordinate.

y

Y coordinate.

arc_height

Height of the arc. This property is read-only.

is_arc

Flag indicating if the point represents an arc.

Import detail#

from pyedb.grpc.database.geometry.point_data import PointData

Property detail#

property PointData.x: pyedb.grpc.database.utility.value.Value#

X coordinate.

This property is read-only.

property PointData.y: pyedb.grpc.database.utility.value.Value#

Y coordinate.

This property is read-only.

property PointData.arc_height: pyedb.grpc.database.utility.value.Value#

Height of the arc. This property is read-only.

property PointData.is_arc: bool#

Flag indicating if the point represents an arc.

This property is read-only.

Attribute detail#

PointData.core#

Method detail#

classmethod PointData.create(pedb: pyedb.grpc.edb.Edb, x: float | str, y: float | str) PointData#

Create a new PointData object.

classmethod PointData.create_arc_point(pedb: pyedb.grpc.edb.Edb, arc_height)#

Create a arc PointData object.

PointData.rotate(angle: str | float | int, center: tuple[str | float | int, str | float | int]) PointData#

Rotate a point at a given center by a given angle.

Parameters:
anglefloat, Value

Angle in radians.

centerlist of float, str, Value

Center.

Returns:
PointData or None

PointData after rotating or None if either point is an arc.

PointData.move(dx: str | float, dy: str | float) PointData#

Move the point.