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:
faceFace

Face that the trimmed surface belongs to.

geometrySurface

Underlying mathematical representation of the surface.

Overview#

get_proportional_parameters

Convert non-proportional parameters into proportional parameters.

normal

Provide the normal to the surface.

project_point

Project a point onto the surface and evaluate it at that location.

evaluate_proportion

Evaluate the surface at proportional u and v parameters.

geometry

Underlying mathematical surface.

box_uv

Bounding BoxUV of the surface.

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_uvParamUV

Non-proportional UV parameters.

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:
uReal

First coordinate of the 2D representation of a surface in UV space.

vReal

Second coordinate of the 2D representation of a surface in UV space.

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:
pointPoint3D

Point to project onto the surface.

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:
uReal

U parameter in the proportional range [0,1].

vReal

V parameter in the proportional range [0,1].

Returns:
SurfaceEvaluation

Resulting surface evaluation.