|
Cubit Python API 17.05
|
Defines a surface object that mostly parallels Cubit's RefFace class. More...
Public Member Functions |
|
| def | area (self) |
|
Get area of the Surface. More... |
|
| def | closest_point_along_vector (self, location, along_vector) |
|
Get the nearest point on the Surface to point
specified along the specified vector. More... |
|
| def | closest_point_trimmed (self, location) |
|
Get the nearest point on the Surface to point
specified. More... |
|
| def | color (self) |
|
Get the color of the surface. More... |
|
| def | get_param_range_U (self) |
|
Get range of u for the Surface. More... |
|
| def | get_param_range_V (self) |
|
Get range of v for the Surface. More... |
|
| def | is_cylindrical (self) |
|
Get whether the Surface is
cylindrical or not. More... |
|
| def | is_planar (self) |
|
Get whether the Surface is planar
or not. More... |
|
| def | normal_at (self, location) |
|
Get the normal at a particular point on the Surface. More... |
|
| def | ordered_loops (self) |
|
Get the ordered loops of the Surface. More... |
|
| def | point_containment (self, point_in) |
|
Get whether a point is on or off of the Surface. More... |
|
| def | position_from_u_v (self, u, v) |
|
Get the Cartesian coordinates from the uv coordinates on
the Surface. More... |
|
| def | principal_curvatures (self, point) |
|
Get the principal curvatures of the Surface. More... |
|
| def | set_color (self, value) |
|
Set the color of the surface. More... |
|
| def | u_v_from_position (self, location) |
|
Get the uv coordinates from the supplied Cartesian
coordinates on the Surface. 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 surface object that mostly parallels Cubit's RefFace class.
| def area | ( | self | ) |
| def closest_point_along_vector | ( | self, | |
| location, | |||
| along_vector | |||
| ) |
Get the nearest point on the Surface 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:: array< double,3 > |
| def closest_point_trimmed | ( | self, | |
| location | |||
| ) |
Get the nearest point on the Surface to point specified.
.. 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:: array< double,3 > |
| def color | ( | self | ) |
Get the color of the surface.
.. code-block:: python
@n return type of : std:: array< double,4 >
| def get_param_range_U | ( | self | ) |
Get range of u for the Surface .
.. code-block:: python
@n return type of : std:: array< double,2 >
| def get_param_range_V | ( | self | ) |
Get range of v for the Surface .
.. code-block:: python
@n return type of : std:: array< double,2 >
| def is_cylindrical | ( | self | ) |
| def is_planar | ( | self | ) |
| def normal_at | ( | self, | |
| location | |||
| ) |
Get the normal at a particular point on the Surface .
.. 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:: array< double,3 > |
| def ordered_loops | ( | self | ) |
Get the ordered loops of the Surface .
.. code-block:: python
@n return type of : std::vector< std::vector< CubitInterface::Curve,std::allocator< CubitInterface::Curve > >,std::allocator< std::vector< CubitInterface::Curve,std::allocator< CubitInterface:: Curve > > > >
0, 0 - loop 1 curve 1
0, 1 - loop 1 curve 2
1, 0 - loop 2 curve 1
| def point_containment | ( | self, | |
| point_in | |||
| ) |
Get whether a point is on or off of the Surface .
.. code-block:: python
@n type of point_in: std::array< double,3 >, in
| point_in | A vector containing three values that are the
coordinates of a point. return type of : int |
| def position_from_u_v | ( | self, | |
| u, | |||
| v | |||
| ) |
Get the Cartesian coordinates from the uv coordinates on the Surface .
.. code-block:: python
@n type of u: float, in
| u | The u parameter type of v: float, in |
| v | The v parameter return type of : std:: array< double,3 > |
| def principal_curvatures | ( | self, | |
| point | |||
| ) |
Get the principal curvatures of the Surface .
.. code-block:: python
@n type of point: std::array< double,3 >, in
| point | A tuple containing 2 values that are the
curvature in the principle u and v directions on
the surface return type of : std:: array< double,2 > |
| def set_color | ( | self, | |
| value | |||
| ) |
Set the color of the surface.
.. code-block:: python
@n type of value: std::array< double,4 >, in
| value | The color value that the surface will have. |
| def u_v_from_position | ( | self, | |
| location | |||
| ) |
Get the uv coordinates from the supplied Cartesian coordinates on the Surface .
.. code-block:: python
@n type of location: std::array< double,3 >, in
| location | A vector containing the Cartesian
coordinates. return type of : std:: array< double,2 > |