|
Cubit Python API 17.07
|
Defines a curve object that mostly parallels Cubit's RefEdge class. More...
Public Member Functions |
|
| def | arc_center_radius (self) |
| Get the center and radius of an arc curve, otherwise returns 0 for non-arc. More... |
|
| def | closest_point (self, point) |
| Get the curvature of the Curve at a particular point. More... |
|
| def | closest_point_along_vector (self, location, along_vector) |
| Get the nearest point on the Curve to point specified along the specified vector. More... |
|
| def | closest_point_trimmed (self, point) |
| Get the closest location on the Curve from a particular point. More... |
|
| def | color (self) |
| Get the color of the Curve. More... |
|
| def | curvature (self, point) |
| Get the curvature of the Curve at a particular point. More... |
|
| def | curve_center (self) |
| Get the center point of the Curve. More... |
|
| def | end_param (self) |
| Get the highest value of the Curve in uv space. More... |
|
| def | fraction_from_arc_length (self, root_vertex, length) |
| Get the fraction along the Curve a specified arc length is away from a given Vertex. More... |
|
| def | is_periodic (self) |
| Get whether the Curve is periodic or not. More... |
|
| def | length (self) |
| Get the length of the Curve. More... |
|
| def | length_from_u (self, parameter1, parameter2) |
| Get the length between two specified parameters on a Curve. More... |
|
| def | point_from_arc_length (self, root_param, arc_length) |
| Get the position on a Curve that is a specified arc length away from the specified root parameter. More... |
|
| def | position_from_fraction (self, fraction_along_curve) |
| Get the position of the point a specified fraction along the Curve. More... |
|
| def | position_from_u (self, u_value) |
| Get the position of a particular u value for the Curve. More... |
|
| def | set_color (self, value) |
| Set the color of the Curve. More... |
|
| def | spline_params (self) |
| Retrieve the full set of spline parameters for this curve. More... |
|
| def | start_param (self) |
| Get the lowest value of the Curve in uv space. More... |
|
| def | tangent (self, point) |
| Get the tangent to the Curve at a particular point. More... |
|
| def | u_from_arc_length (self, root_param, arc_length) |
| Get the u value for a point a specified arc length away from a specified root parameter on the Curve. More... |
|
| def | u_from_position (self, position) |
| Get the u value of a particular position on the Curve. More... |
|
Public Member Functions inherited from GeomEntity |
|
| def | bodies (self) |
| Retrieve bodies contained within the geometry entity. More... |
|
| def | curves (self) |
| Retrieve curves (edges) associated with the geometry entity. More... |
|
| def | dimension (self) |
| Get the topological dimension of the geometry entity. More... |
|
| def | entity_name (self) |
| Retrieve the primary name of the geometry entity. More... |
|
| def | entity_names (self) |
| Retrieve all names assigned to the geometry entity. More... |
|
| def | is_meshed (self) |
| Returns the current mesh state of the GeomEntity. More... |
|
| def | is_transparent (self) |
| Get the transparency state of the geometry entity. More... |
|
| def | is_visible (self) |
| Get the visibility state of the geometry entity. More... |
|
| def | mesh (self) |
| Generates mesh on a GeomEntity and verifies meshing status. More... |
|
| def | num_names (self) |
| Get the count of names assigned to the geometry entity. More... |
|
| def | remove_entity_name (self, name) |
| Remove a specific name from the geometry entity. More... |
|
| def | remove_entity_names (self) |
| Remove all non-default names from the geometry entity. More... |
|
| def | remove_mesh (self) |
| Remove any mesh associated with the geometry entity. More... |
|
| def | set_entity_name (self, name) |
| Assign a name to the geometry entity. More... |
|
| def | set_transparent (self, transparency_flag) |
| Set the transparency state of the geometry entity. More... |
|
| def | set_visible (self, visibility_flag) |
| Set and verify the visibility state of the geometry entity. More... |
|
| def | smooth (self) |
| Smooths the mesh on a GeomEntity to improve element quality. More... |
|
| def | surfaces (self) |
| Retrieve surfaces associated with the geometry entity. More... |
|
| def | vertices (self) |
| Retrieve vertices (points) associated with the geometry entity. More... |
|
| def | volumes (self) |
| Retrieve volumes associated with the geometry entity. More... |
|
Public Member Functions inherited from Entity |
|
| def | bounding_box (self) |
| Returns the axis-aligned bounding box of the Entity. More... |
|
| def | center_point (self) |
| Returns the geometric center point of the Entity. More... |
|
| def | id (self) |
| Retrieves the unique identifier of the Entity. More... |
|
Defines a curve object that mostly parallels Cubit's RefEdge class.
| def arc_center_radius | ( | self | ) |
Get the center and radius of an arc curve, otherwise returns 0 for non-arc.
.. code-block:: python
@n return type of : std:: array< double,4 >
| def closest_point | ( | self, | |
| point | |||
| ) |
Get the curvature of the Curve at a particular point.
.. code-block:: python
@n type of point: std::array< double,3 >, in
| point | A vector containing 3 doubles representing coordinates of a location on the Curve. return type of : std:: array< double,3 > |
| def closest_point_along_vector | ( | self, | |
| location, | |||
| along_vector | |||
| ) |
Get the nearest point on the Curve to point specified along the specified vector.
.. code-block:: python
@n type of location: std::array< double,3 >, in
| location | A vector containing three values that are the coordinates of a point. return type of : std::pair< bool,std:: array< double,3 > > |
| def closest_point_trimmed | ( | self, | |
| point | |||
| ) |
Get the closest location on the Curve from a particular point.
.. code-block:: python
@n type of point: std::array< double,3 >, in
| point | A vector containing 3 doubles representing coordinates of a location on the Curve. return type of : std:: array< double,3 > |
| def color | ( | self | ) |
Get the color of the Curve .
.. code-block:: python
@n return type of : std:: array< double,4 >
| def curvature | ( | self, | |
| point | |||
| ) |
Get the curvature of the Curve at a particular point.
.. code-block:: python
@n type of point: std::array< double,3 >, in
| point | A curvature vector containing 3 doubles. This is related to the 2nd derivative of the curve. return type of : std:: array< double,3 > |
| def curve_center | ( | self | ) |
| def end_param | ( | self | ) |
Get the highest value of the Curve in uv space.
.. code-block:: python
@n return type of : float
| def fraction_from_arc_length | ( | self, | |
| root_vertex, | |||
| length | |||
| ) |
Get the fraction along the Curve a specified arc length is away from a given Vertex .
.. code-block:: python
@n type of root_vertex: :py:class:`Vertex`, in
| def is_periodic | ( | self | ) |
| def length | ( | self | ) |
| def length_from_u | ( | self, | |
| parameter1, | |||
| parameter2 | |||
| ) |
Get the length between two specified parameters on a Curve .
.. code-block:: python
@n type of parameter1: float, in
| parameter1 | The beginning parameter. type of parameter2: float, in |
| parameter2 | The ending parameter. return type of : float |
| def point_from_arc_length | ( | self, | |
| root_param, | |||
| arc_length | |||
| ) |
Get the position on a Curve that is a specified arc length away from the specified root parameter.
.. code-block:: python
@n type of root_param: float, in
| root_param | The root parameter from which the arc length is added to. type of arc_length: float, in |
| arc_length | The arc length along the Curve away from the root parameter. return type of : std:: array< double,3 > |
| def position_from_fraction | ( | self, | |
| fraction_along_curve | |||
| ) |
Get the position of the point a specified fraction along the Curve .
.. code-block:: python
@n type of fraction_along_curve: float, in
| fraction_along_curve | A decimal value between 0 and 1 to determine a particular position along the Curve. return type of : std:: array< double,3 > |
| def position_from_u | ( | self, | |
| u_value | |||
| ) |
Get the position of a particular u value for the Curve .
.. code-block:: python
@n type of u_value: float, in
| u_value | The u value of the position along the Curve. return type of : std:: array< double,3 > |
| def set_color | ( | self, | |
| value | |||
| ) |
Set the color of the Curve .
.. code-block:: python
@n type of value: std::array< double,4 >, in
| value | The color value that the curve will have. |
| def spline_params | ( | self | ) |
Retrieve the full set of spline parameters for this curve.
This method wraps the underlying geometry engine's spline-parameter routine (e.g., ACIS), extracting control point positions, weights, and knot data into a uniform flat vector. It throws InvalidEntityException for invalid entities and reports failure on non-spline curves.
.. code-block:: python
for p in pts: print(f" {p}") print(f"Weights({m_w}): {weights}") print {knots}") print {reversed_flag}")
@n return type of : std::vector< double,std:: allocator< double > >
| def start_param | ( | self | ) |
Get the lowest value of the Curve in uv space.
.. code-block:: python
@n return type of : float
| def tangent | ( | self, | |
| point | |||
| ) |
Get the tangent to the Curve at a particular point.
.. code-block:: python
@n type of point: std::array< double,3 >, in
| point | A vector containing 3 doubles representing coordinates of a location on the Curve. return type of : std:: array< double,3 > |
| def u_from_arc_length | ( | self, | |
| root_param, | |||
| arc_length | |||
| ) |
Get the u value for a point a specified arc length away from a specified root parameter on the Curve .
.. code-block:: python
@n type of root_param: float, in
| root_param | The beginning parameter from which the arc length is added to. type of arc_length: float, in |
| arc_length | The length away from the root parameter of the output parameter. return type of : float |
| def u_from_position | ( | self, | |
| position | |||
| ) |
Get the u value of a particular position on the Curve .
.. code-block:: python
@n type of position: std::array< double,3 >, in
| position | A vector containing the coordinates of the input position return type of : float |