GeometryOperators#

class ansys.aedt.core.modeler.geometry_operators.GeometryOperators#

Manages geometry operators.

Methods

GeometryOperators.List2list(input_list)

Convert a C# list object to a Python list.

GeometryOperators.are_segments_intersecting(a1, ...)

Determine if the two segments a and b are intersecting.

GeometryOperators.arrays_positions_sum(...)

Return the sum of two vertices lists.

GeometryOperators.atan2(y, x)

Implementation of atan2 that does not suffer from the following issues: math.atan2(0.0, 0.0) = 0.0 math.atan2(-0.0, 0.0) = -0.0 math.atan2(0.0, -0.0) = 3.141592653589793 math.atan2(-0.0, -0.0) = -3.141592653589793 and returns always 0.0.

GeometryOperators.axis_angle_to_quaternion(u, ...)

Convert the axis angle rotation formulation to a quaternion.

GeometryOperators.axis_to_euler_zxz(x, y, z)

Retrieve Euler angles of a frame following the rotation sequence ZXZ.

GeometryOperators.axis_to_euler_zyz(x, y, z)

Retrieve Euler angles of a frame following the rotation sequence ZYZ.

GeometryOperators.cs_axis_str(val)

Retrieve a string for a coordinate system axis.

GeometryOperators.cs_plane_to_axis_str(val)

Retrieve a string for a coordinate system plane.

GeometryOperators.cs_plane_to_plane_str(val)

Retrieve a string for a coordinate system plane.

GeometryOperators.cs_xy_pointing_expression(...)

Return x_pointing and y_pointing vectors as expressions from the yaw, ptich, and roll input (as strings).

GeometryOperators.deg2rad(angle)

Convert the angle from degrees to radians.

GeometryOperators.degrees_default_rounded(...)

Convert angle to degree with given digits rounding.

GeometryOperators.degrees_over_rounded(...)

Ceil of angle.

GeometryOperators.distance_vector(p, a, b)

Evaluate the vector distance between point p and a line defined by two points, a and b.

GeometryOperators.draft_type_str(val)

Retrieve the draft type.

GeometryOperators.euler_zxz_to_quaternion(...)

Convert the Euler angles following rotation sequence ZXZ to a quaternion.

GeometryOperators.euler_zyz_to_quaternion(...)

Convert the Euler angles following rotation sequence ZYZ to a quaternion.

GeometryOperators.find_closest_points(...[, tol])

Given a list of points, finds the closest points to a reference point.

GeometryOperators.find_largest_rectangle_inside_polygon(polygon)

Find the largest area rectangles of arbitrary orientation in a polygon.

GeometryOperators.find_point_on_plane(pointlists)

Find a point on a plane.

GeometryOperators.get_mid_point(v1, v2)

Evaluate the midpoint between two points.

GeometryOperators.get_numeric(s)

Convert a string to a numeric value.

GeometryOperators.get_polygon_centroid(pts)

Evaluate the centroid of a polygon defined by its points.

GeometryOperators.get_triangle_area(v1, v2, v3)

Evaluate the area of a triangle defined by its three vertices.

GeometryOperators.is_between_points(p, a, b)

Check if a point lies on the segment defined by two points.

GeometryOperators.is_collinear(a, b[, tol])

Check if two vectors are collinear (parallel or anti-parallel).

GeometryOperators.is_parallel(a1, a2, b1, b2)

Check if a segment defined by two points is parallel to a segment defined by two other points.

GeometryOperators.is_perpendicular(a, b[, tol])

Check if two vectors are perpendicular.

GeometryOperators.is_point_in_polygon(point, ...)

Determine if a point is inside or outside a polygon, both located on the same plane.

GeometryOperators.is_point_projection_in_segment(p, a, b)

Check if a point projection lies on the segment defined by two points.

GeometryOperators.is_projection_inside(a1, ...)

Project a segment onto another segment and check if the projected segment is inside it.

GeometryOperators.is_segment_intersecting_polygon(a, ...)

Determine if a segment defined by two points a and b intersects a polygon.

GeometryOperators.is_small(s)

Return True if the number represented by s is zero (i.e very small).

GeometryOperators.mirror_point(start, ...)

Mirror point about a plane defining by a point on the plane and a normal point.

GeometryOperators.normalize_vector(v)

Normalize a geometry vector.

GeometryOperators.numeric_cs(cs_in)

Return a list of [x,y,z] numeric values given a coordinate system as input.

GeometryOperators.orient_polygon(x, y[, ...])

Orient a polygon clockwise or counterclockwise.

GeometryOperators.parallel_coeff(a1, a2, b1, b2)

ADD DESCRIPTION.

GeometryOperators.parse_dim_arg(string[, ...])

Convert a number and unit to a float.

GeometryOperators.point_in_polygon(point, ...)

Determine if a point is inside, outside the polygon or at exactly at the border.

GeometryOperators.point_segment_distance(p, a, b)

Calculate the distance between a point p and a segment defined by two points a and b.

GeometryOperators.pointing_to_axis(...)

Retrieve the axes from the HFSS X axis and Y pointing axis as per the definition of the AEDT interface coordinate system.

GeometryOperators.points_distance(p1, p2)

Evaluate the distance between two points expressed as their Cartesian coordinates.

GeometryOperators.q_prod(p, q)

Evaluate the product of two quaternions, p and q, defined as: p = p0 + p' = p0 + ip1 + jp2 + kp3.

GeometryOperators.q_rotation(v, q)

Evaluate the rotation of a vector, defined by a quaternion.

GeometryOperators.q_rotation_inv(v, q)

Evaluate the inverse rotation of a vector that is defined by a quaternion.

GeometryOperators.quaternion_to_axis(q)

Convert a quaternion to a rotated frame defined by X, Y, and Z axes.

GeometryOperators.quaternion_to_axis_angle(q)

Convert a quaternion to the axis angle rotation formulation.

GeometryOperators.quaternion_to_euler_zxz(q)

Convert a quaternion to Euler angles following rotation sequence ZXZ.

GeometryOperators.quaternion_to_euler_zyz(q)

Convert a quaternion to Euler angles following rotation sequence ZYZ.

GeometryOperators.rad2deg(angle)

Convert the angle from radians to degrees.

GeometryOperators.radians_default_rounded(...)

Convert to radians with given round.

GeometryOperators.radians_over_rounded(...)

Radian angle ceiling.

GeometryOperators.v_angle(a, b)

Evaluate the angle between two geometry vectors.

GeometryOperators.v_angle_sign(va, vb, vn[, ...])

Evaluate the signed angle between two geometry vectors.

GeometryOperators.v_angle_sign_2D(va, vb[, ...])

Evaluate the signed angle between two 2D geometry vectors.

GeometryOperators.v_cross(a, b)

Evaluate the cross product of two geometry vectors.

GeometryOperators.v_dot(a, b)

Evaluate the dot product between two geometry vectors.

GeometryOperators.v_norm(a)

Evaluate the Euclidean norm of a geometry vector.

GeometryOperators.v_points(p1, p2)

Vector from one point to another point.

GeometryOperators.v_prod(s, v)

Evaluate the product between a scalar value and a vector.

GeometryOperators.v_rotate_about_axis(...[, ...])

Evaluate rotation of a vector around an axis.

GeometryOperators.v_sub(a, b)

Evaluate two geometry vectors by subtracting them (a-b).

GeometryOperators.v_sum(a, b)

Evaluate two geometry vectors by adding them (a+b).