DatumPlane#

class ansys.geometry.core.designer.datumplane.DatumPlane(id: str, name: str, plane: ansys.geometry.core.math.plane.Plane, parent_component: ansys.geometry.core.designer.component.Component)#

Provides for creating datum planes in components.

Parameters:
idstr

Server-defined ID for the datum plane.

namestr

User-defined label for the datum plane.

planePlane

Plane constituting the datum plane.

parent_componentComponent

Parent component to place the new datum plane under within the design assembly.

Overview#

evaluate

Evaluate the plane at UV parametric coordinates.

id

ID of the datum plane.

name

Name of the datum plane.

value

Plane constituting the datum plane.

parent_component

Parent component of the datum plane.

is_alive

Check if the datum plane is still present on the server.

__repr__

Represent the datum plane as a string.

Import detail#

from ansys.geometry.core.designer.datumplane import DatumPlane

Property detail#

property DatumPlane.id: str#

ID of the datum plane.

property DatumPlane.name: str#

Name of the datum plane.

property DatumPlane.value: ansys.geometry.core.math.plane.Plane#

Plane constituting the datum plane.

property DatumPlane.parent_component: ansys.geometry.core.designer.component.Component#

Parent component of the datum plane.

property DatumPlane.is_alive: bool#

Check if the datum plane is still present on the server.

Method detail#

DatumPlane.evaluate(u: float, v: float) ansys.geometry.core.math.point.Point3D#

Evaluate the plane at UV parametric coordinates.

This method converts 2D parametric coordinates (u, v) to a 3D Cartesian point on the plane using the parametric equation: P(u, v) = origin + u * direction_x + v * direction_y

Parameters:
ufloat

First parametric coordinate along the plane’s x-direction.

vfloat

Second parametric coordinate along the plane’s y-direction.

Returns:
Point3D

3D Cartesian point on the plane at the given UV coordinates.

DatumPlane.__repr__()#

Represent the datum plane as a string.