TrimmedSurface
#
- class ansys.geometry.core.shapes.surfaces.trimmed_surface.TrimmedSurface(geometry: ansys.geometry.core.shapes.surfaces.surface.Surface, box_uv: ansys.geometry.core.shapes.box_uv.BoxUV)#
Represents a trimmed surface.
A trimmed surface is a surface that has a boundary. This boundary comes in the form of a bounding BoxUV.
- Parameters:
- face
Face
Face that the trimmed surface belongs to.
- geometry
Surface
Underlying mathematical representation of the surface.
- face
Overview#
Convert non-proportional parameters into proportional parameters. |
|
Provide the normal to the surface. |
|
Project a point onto the surface and evaluate it at that location. |
|
Evaluate the surface at proportional u and v parameters. |
Import detail#
from ansys.geometry.core.shapes.surfaces.trimmed_surface import TrimmedSurface
Property detail#
- property TrimmedSurface.geometry: ansys.geometry.core.shapes.surfaces.surface.Surface#
Underlying mathematical surface.
- property TrimmedSurface.box_uv: ansys.geometry.core.shapes.box_uv.BoxUV#
Bounding BoxUV of the surface.
Method detail#
- TrimmedSurface.get_proportional_parameters(param_uv: ansys.geometry.core.shapes.parameterization.ParamUV) ansys.geometry.core.shapes.parameterization.ParamUV #
Convert non-proportional parameters into proportional parameters.
- Parameters:
- param_uv
ParamUV
Non-proportional UV parameters.
- param_uv
- Returns:
ParamUV
Proportional (from 0-1) UV parameters.
- TrimmedSurface.normal(u: ansys.geometry.core.typing.Real, v: ansys.geometry.core.typing.Real) ansys.geometry.core.math.vector.UnitVector3D #
Provide the normal to the surface.
- Parameters:
- u
Real
First coordinate of the 2D representation of a surface in UV space.
- v
Real
Second coordinate of the 2D representation of a surface in UV space.
- u
- Returns:
UnitVector3D
Unit vector is normal to the surface at the given UV coordinates.
- TrimmedSurface.project_point(point: ansys.geometry.core.math.point.Point3D) ansys.geometry.core.shapes.surfaces.surface_evaluation.SurfaceEvaluation #
Project a point onto the surface and evaluate it at that location.
- Parameters:
- point
Point3D
Point to project onto the surface.
- point
- Returns:
SurfaceEvaluation
Resulting evaluation.
- TrimmedSurface.evaluate_proportion(u: ansys.geometry.core.typing.Real, v: ansys.geometry.core.typing.Real) ansys.geometry.core.shapes.surfaces.surface_evaluation.SurfaceEvaluation #
Evaluate the surface at proportional u and v parameters.
- Parameters:
- u
Real
U parameter in the proportional range [0,1].
- v
Real
V parameter in the proportional range [0,1].
- u
- Returns:
SurfaceEvaluation
Resulting surface evaluation.