OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
Loading...
Searching...
No Matches
occtl::Surface Class Reference

Non-owning reference to a geometric surface stored in a graph. More...

#include <surfaces.hpp>

Classes

struct  BSplineView
 Aggregate inspection view of a B-spline surface. More...
 
struct  ExtrusionView
 
struct  OffsetView
 
struct  RectangularTrimmedView
 
struct  RevolutionView
 

Public Member Functions

 Surface (occtl_graph_t *theGraph=nullptr, occtl_rep_id_t theId=occtl_rep_id_t{0}) noexcept
 Constructs a null reference (no graph, invalid id).
 
 operator bool () const noexcept
 Returns true when the reference points into a valid graph.
 
occtl_graph_tgraph () const noexcept
 Borrows it — returns the graph pointer.
 
occtl_rep_id_t id () const noexcept
 Returns the representation id.
 
Surface reversed () const
 Returns a U-reversed copy of this surface stored in the same graph.
 
Surface transformed (const Transform &theTrsf) const
 Returns a transformed copy of this surface stored in the same graph.
 
Surface translated (const Vector3 &theDelta) const
 Returns a translated copy of this surface stored in the same graph.
 
Surface rotated (const Axis1Placement &theAxis, double theAngle) const
 Returns a rotated copy of this surface stored in the same graph.
 
Surface scaled (const Point3 &theOrigin, double theFactor) const
 Returns a scaled copy of this surface stored in the same graph.
 
double area () const
 Returns the surface area over its full UV domain.
 
std::tuple< double, double, double > project_point (const Point3 &thePoint) const
 Projects a point onto the surface.
 
std::pair< double, double > uv_of_point (const Point3 &thePoint) const
 Returns the UV coordinates on the surface nearest to a point.
 
occtl_surface_kind_t kind () const
 Returns the kind of surface this handle holds.
 
int32_t is_u_periodic () const
 Returns 1 when the surface is periodic in the U direction.
 
int32_t is_v_periodic () const
 Returns 1 when the surface is periodic in the V direction.
 
int32_t is_closed () const
 Returns 1 when the surface is closed in both U and V directions.
 
int32_t is_periodic () const
 Returns 1 when the surface is periodic in either U or V direction.
 
occtl_geom_continuity_t continuity () const
 Returns the geometric continuity class.
 
void parameter_range (double &theUMin, double &theUMax, double &theVMin, double &theVMax) const
 Returns the parameter range via out-parameters.
 
occtl_geom_plane_t as_plane () const
 Extracts the underlying plane.
 
occtl_geom_cylindrical_surface_t as_cylinder () const
 Extracts the underlying cylinder.
 
occtl_geom_conical_surface_t as_cone () const
 Extracts the underlying cone.
 
occtl_geom_spherical_surface_t as_sphere () const
 Extracts the underlying sphere.
 
occtl_geom_toroidal_surface_t as_torus () const
 Extracts the underlying torus.
 
RevolutionView as_revolution () const
 
ExtrusionView as_extrusion () const
 
RectangularTrimmedView as_rectangular_trimmed () const
 
OffsetView as_offset () const
 
BSplineView as_bspline () const
 Returns a aggregate inspection view of a B-spline surface.
 
int32_t bspline_u_degree () const
 Returns the U polynomial degree.
 
int32_t bspline_v_degree () const
 Returns the V polynomial degree.
 
size_t bspline_u_pole_count () const
 Returns the number of poles in the U direction.
 
size_t bspline_v_pole_count () const
 Returns the number of poles in the V direction.
 
size_t bspline_u_knot_count () const
 Returns the number of distinct U knot values.
 
size_t bspline_v_knot_count () const
 Returns the number of distinct V knot values.
 
int32_t bspline_is_rational () const
 Returns 1 when the surface is rational in either U or V, 0 otherwise.
 
int32_t bezier_u_degree () const
 Returns the U degree of a Bezier surface.
 
int32_t bezier_v_degree () const
 Returns the V degree of a Bezier surface.
 
size_t bezier_u_pole_count () const
 Returns the number of poles in the U direction of a Bezier surface.
 
size_t bezier_v_pole_count () const
 Returns the number of poles in the V direction of a Bezier surface.
 
int32_t bezier_is_rational () const
 Returns 1 when the Bezier surface is rational, 0 otherwise.
 
std::vector< occtl_point3_tbspline_poles () const
 Copies poles (row-major: u * v_pole_count + v) into a vector.
 
std::vector< double > bspline_u_knots () const
 Copies U knot values into a vector.
 
std::vector< double > bspline_v_knots () const
 Copies V knot values into a vector.
 
std::vector< int32_t > bspline_u_multiplicities () const
 Copies U knot multiplicities into a vector.
 
std::vector< int32_t > bspline_v_multiplicities () const
 Copies V knot multiplicities into a vector.
 
std::vector< double > bspline_weights () const
 Copies all weights (row-major u*v_pole_count + v) into a vector.
 
std::vector< double > bspline_u_flat_knots () const
 Copies the expanded U flat knot sequence into a vector.
 
std::vector< double > bspline_v_flat_knots () const
 Copies the expanded V flat knot sequence into a vector.
 
const occtl_point3_tbspline_poles_view (size_t &theNbU, size_t &theNbV) const
 Returns a zero-copy view of the surface poles array (row-major u*v_pole_count + v). Valid until the graph rep is removed or a mutating call is made on it.
 
std::vector< occtl_point3_tintersect_curve (const Curve &theCurve) const
 Computes intersection points with a curve. Two-call pattern handled internally; returns a vector of intersection points.
 
std::vector< Curveintersect_surface (const Surface &theOther, double theTolerance=1.0e-7) const
 Computes intersection curves with another surface. Each result curve wraps a rep id in the same graph.
 
occtl_point3_t eval_d0 (const double theU, const double theV) const
 Evaluates the surface point at (theU, theV).
 
std::tuple< occtl_point3_t, occtl_vector3_t, occtl_vector3_teval_d1 (const double theU, const double theV) const
 Evaluates point and first-order partial derivatives at (theU, theV). Returns (point, dS/du, dS/dv).
 
std::tuple< occtl_point3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_teval_d2 (const double theU, const double theV) const
 Evaluates point and first- and second-order partial derivatives at (theU, theV). Returns (point, dS/du, dS/dv, d²S/du², d²S/dv², d²S/dudv).
 
std::tuple< occtl_point3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_teval_d3 (const double theU, const double theV) const
 Evaluates point and first-, second-, and third-order partial derivatives at (theU, theV).
 
occtl_vector3_t eval_dn (const double theU, const double theV, const int32_t theNu, const int32_t theNv) const
 Returns a partial derivative vector at (theU, theV).
 

Static Public Member Functions

static Surface from_plane (occtl_graph_t *graph, const occtl_geom_plane_t &thePlane)
 Constructs a surface from a plane.
 
static Surface from_cylinder (occtl_graph_t *graph, const occtl_geom_cylindrical_surface_t &theCyl)
 Constructs a surface from a cylinder.
 
static Surface from_cone (occtl_graph_t *graph, const occtl_geom_conical_surface_t &theCone)
 Constructs a surface from a cone.
 
static Surface from_sphere (occtl_graph_t *graph, const occtl_geom_spherical_surface_t &theSphere)
 Constructs a surface from a sphere.
 
static Surface from_torus (occtl_graph_t *graph, const occtl_geom_toroidal_surface_t &theTorus)
 Constructs a surface from a torus.
 
static Surface from_bspline (occtl_graph_t *graph, const occtl_surface_bspline_create_info_t &theInfo)
 Constructs a B-spline surface from the given create info.
 
static Surface from_bezier (occtl_graph_t *graph, const occtl_surface_bezier_create_info_t &theInfo)
 Constructs a Bezier surface from the given create info.
 
static Surface from_bezier_grid (occtl_graph_t *graph, const occtl_surface_bezier_create_info_t &theInfo)
 Constructs a Bezier surface from a row-major pole grid.
 
static Surface from_revolution (occtl_graph_t *graph, const occtl_surface_revolution_create_info_t &theInfo)
 Constructs a surface of revolution.
 
static Surface from_extrusion (occtl_graph_t *graph, const occtl_surface_extrusion_create_info_t &theInfo)
 Constructs a surface of linear extrusion.
 
static Surface from_rectangular_trimmed (occtl_graph_t *graph, const occtl_surface_rectangular_trimmed_create_info_t &theInfo)
 Constructs a rectangular-trimmed surface.
 
static Surface from_offset (occtl_graph_t *graph, const occtl_surface_offset_create_info_t &theInfo)
 Constructs an offset surface.
 
static Surface from_interpolation (occtl_graph_t *graph, const occtl_surface_interpolated_info_t &theInfo)
 Constructs a surface by interpolating through the given point grid.
 
static Surface from_approximation (occtl_graph_t *graph, const occtl_surface_approximated_info_t &theInfo)
 Constructs a surface by approximating the given point grid.
 
static Surface from_point_grid (occtl_graph_t *graph, const occtl_surface_point_grid_create_info_t &theInfo)
 Constructs a B-spline surface from a point grid.
 
static Surface from_boundary_curves (occtl_graph_t *graph, const std::vector< const Curve * > &theCurves, ::occtl_surface_filling_style_t theStyle=OCCTL_SURFACE_FILLING_STRETCH)
 Constructs a B-spline surface from contiguous boundary curves.
 
static Surface from_gordon (occtl_graph_t *graph, const std::vector< const Curve * > &theProfiles, const std::vector< const Curve * > &theGuides, const double theTolerance=1.0e-7, const bool theParallel=false)
 Constructs a Gordon B-spline surface from profile and guide curves.
 
static Surface from_curve_grid (occtl_graph_t *graph, const std::vector< const Curve * > &theUCurves, const std::vector< const Curve * > &theVCurves, const double theTolerance=1.0e-7, const bool theParallel=false)
 Constructs a B-spline surface from an intersecting U/V curve grid.
 

Detailed Description

Non-owning reference to a geometric surface stored in a graph.

Wraps one occtl_rep_id_t inside an occtl_graph_t*. Copying is shallow — both copies refer to the same graph representation.

Member Function Documentation

◆ area()

double occtl::Surface::area ( ) const
inline

Returns the surface area over its full UV domain.

Exceptions
Errorwhen the underlying call fails.

◆ as_bspline()

Surface::BSplineView occtl::Surface::as_bspline ( ) const
inline

Returns a aggregate inspection view of a B-spline surface.

The returned view's pointer fields borrow from this surface's graph rep and remain valid until the rep is removed from the graph.

Exceptions
Errorwith OCCTL_WRONG_KIND when kind() != BSPLINE, or OCCTL_VERSION_MISMATCH on unsupported layout version.

◆ as_cone()

occtl_geom_conical_surface_t occtl::Surface::as_cone ( ) const
inline

Extracts the underlying cone.

Exceptions
Errorwith OCCTL_WRONG_KIND when kind() != OCCTL_SURFACE_KIND_CONICAL.

◆ as_cylinder()

occtl_geom_cylindrical_surface_t occtl::Surface::as_cylinder ( ) const
inline

Extracts the underlying cylinder.

Exceptions
Errorwith OCCTL_WRONG_KIND when kind() != OCCTL_SURFACE_KIND_CYLINDRICAL.

◆ as_plane()

occtl_geom_plane_t occtl::Surface::as_plane ( ) const
inline

Extracts the underlying plane.

Exceptions
Errorwith OCCTL_WRONG_KIND when kind() != OCCTL_SURFACE_KIND_PLANE.

◆ as_sphere()

occtl_geom_spherical_surface_t occtl::Surface::as_sphere ( ) const
inline

Extracts the underlying sphere.

Exceptions
Errorwith OCCTL_WRONG_KIND when kind() != OCCTL_SURFACE_KIND_SPHERICAL.

◆ as_torus()

occtl_geom_toroidal_surface_t occtl::Surface::as_torus ( ) const
inline

Extracts the underlying torus.

Exceptions
Errorwith OCCTL_WRONG_KIND when kind() != OCCTL_SURFACE_KIND_TOROIDAL.

◆ bezier_is_rational()

int32_t occtl::Surface::bezier_is_rational ( ) const
inline

Returns 1 when the Bezier surface is rational, 0 otherwise.

Exceptions
Errorwhen kind != BEZIER.

◆ bezier_u_degree()

int32_t occtl::Surface::bezier_u_degree ( ) const
inline

Returns the U degree of a Bezier surface.

Exceptions
Errorwhen kind != BEZIER.

◆ bezier_u_pole_count()

size_t occtl::Surface::bezier_u_pole_count ( ) const
inline

Returns the number of poles in the U direction of a Bezier surface.

Exceptions
Errorwhen kind != BEZIER.

◆ bezier_v_degree()

int32_t occtl::Surface::bezier_v_degree ( ) const
inline

Returns the V degree of a Bezier surface.

Exceptions
Errorwhen kind != BEZIER.

◆ bezier_v_pole_count()

size_t occtl::Surface::bezier_v_pole_count ( ) const
inline

Returns the number of poles in the V direction of a Bezier surface.

Exceptions
Errorwhen kind != BEZIER.

◆ bspline_is_rational()

int32_t occtl::Surface::bspline_is_rational ( ) const
inline

Returns 1 when the surface is rational in either U or V, 0 otherwise.

Exceptions
Errorwhen kind != BSPLINE.

◆ bspline_poles()

std::vector< occtl_point3_t > occtl::Surface::bspline_poles ( ) const
inline

Copies poles (row-major: u * v_pole_count + v) into a vector.

Exceptions
Errorwhen kind != BSPLINE or extraction fails.

◆ bspline_poles_view()

const occtl_point3_t * occtl::Surface::bspline_poles_view ( size_t &  theNbU,
size_t &  theNbV 
) const
inline

Returns a zero-copy view of the surface poles array (row-major u*v_pole_count + v). Valid until the graph rep is removed or a mutating call is made on it.

Exceptions
Errorwhen kind != BSPLINE or view is unavailable.

◆ bspline_u_degree()

int32_t occtl::Surface::bspline_u_degree ( ) const
inline

Returns the U polynomial degree.

Exceptions
Errorwhen kind != BSPLINE.

◆ bspline_u_flat_knots()

std::vector< double > occtl::Surface::bspline_u_flat_knots ( ) const
inline

Copies the expanded U flat knot sequence into a vector.

Exceptions
Errorwhen kind != BSPLINE or extraction fails.

◆ bspline_u_knot_count()

size_t occtl::Surface::bspline_u_knot_count ( ) const
inline

Returns the number of distinct U knot values.

Exceptions
Errorwhen kind != BSPLINE.

◆ bspline_u_knots()

std::vector< double > occtl::Surface::bspline_u_knots ( ) const
inline

Copies U knot values into a vector.

Exceptions
Errorwhen kind != BSPLINE or extraction fails.

◆ bspline_u_multiplicities()

std::vector< int32_t > occtl::Surface::bspline_u_multiplicities ( ) const
inline

Copies U knot multiplicities into a vector.

Exceptions
Errorwhen kind != BSPLINE or extraction fails.

◆ bspline_u_pole_count()

size_t occtl::Surface::bspline_u_pole_count ( ) const
inline

Returns the number of poles in the U direction.

Exceptions
Errorwhen kind != BSPLINE.

◆ bspline_v_degree()

int32_t occtl::Surface::bspline_v_degree ( ) const
inline

Returns the V polynomial degree.

Exceptions
Errorwhen kind != BSPLINE.

◆ bspline_v_flat_knots()

std::vector< double > occtl::Surface::bspline_v_flat_knots ( ) const
inline

Copies the expanded V flat knot sequence into a vector.

Exceptions
Errorwhen kind != BSPLINE or extraction fails.

◆ bspline_v_knot_count()

size_t occtl::Surface::bspline_v_knot_count ( ) const
inline

Returns the number of distinct V knot values.

Exceptions
Errorwhen kind != BSPLINE.

◆ bspline_v_knots()

std::vector< double > occtl::Surface::bspline_v_knots ( ) const
inline

Copies V knot values into a vector.

Exceptions
Errorwhen kind != BSPLINE or extraction fails.

◆ bspline_v_multiplicities()

std::vector< int32_t > occtl::Surface::bspline_v_multiplicities ( ) const
inline

Copies V knot multiplicities into a vector.

Exceptions
Errorwhen kind != BSPLINE or extraction fails.

◆ bspline_v_pole_count()

size_t occtl::Surface::bspline_v_pole_count ( ) const
inline

Returns the number of poles in the V direction.

Exceptions
Errorwhen kind != BSPLINE.

◆ bspline_weights()

std::vector< double > occtl::Surface::bspline_weights ( ) const
inline

Copies all weights (row-major u*v_pole_count + v) into a vector.

Exceptions
Errorwhen kind != BSPLINE or extraction fails.

◆ continuity()

occtl_geom_continuity_t occtl::Surface::continuity ( ) const
inline

Returns the geometric continuity class.

Exceptions
Errorwhen the underlying call fails.

◆ eval_d0()

occtl_point3_t occtl::Surface::eval_d0 ( const double  theU,
const double  theV 
) const
inline

Evaluates the surface point at (theU, theV).

Exceptions
Erroron NULL graph or out-of-range.

◆ eval_d1()

std::tuple< occtl_point3_t, occtl_vector3_t, occtl_vector3_t > occtl::Surface::eval_d1 ( const double  theU,
const double  theV 
) const
inline

Evaluates point and first-order partial derivatives at (theU, theV). Returns (point, dS/du, dS/dv).

Exceptions
Erroron NULL graph or out-of-range.

◆ eval_d2()

std::tuple< occtl_point3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t > occtl::Surface::eval_d2 ( const double  theU,
const double  theV 
) const
inline

Evaluates point and first- and second-order partial derivatives at (theU, theV). Returns (point, dS/du, dS/dv, d²S/du², d²S/dv², d²S/dudv).

Exceptions
Erroron NULL graph or out-of-range.

◆ eval_d3()

std::tuple< occtl_point3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t > occtl::Surface::eval_d3 ( const double  theU,
const double  theV 
) const
inline

Evaluates point and first-, second-, and third-order partial derivatives at (theU, theV).

Exceptions
Erroron NULL graph or out-of-range.

◆ eval_dn()

occtl_vector3_t occtl::Surface::eval_dn ( const double  theU,
const double  theV,
const int32_t  theNu,
const int32_t  theNv 
) const
inline

Returns a partial derivative vector at (theU, theV).

Parameters
theNuDerivative order in U (>= 0).
theNvDerivative order in V (>= 0).
Exceptions
Erroron NULL graph or out-of-range.

◆ from_approximation()

static Surface occtl::Surface::from_approximation ( occtl_graph_t graph,
const occtl_surface_approximated_info_t theInfo 
)
inlinestatic

Constructs a surface by approximating the given point grid.

Exceptions
Erroron invalid geometry or version mismatch.

◆ from_bezier()

static Surface occtl::Surface::from_bezier ( occtl_graph_t graph,
const occtl_surface_bezier_create_info_t theInfo 
)
inlinestatic

Constructs a Bezier surface from the given create info.

Exceptions
Erroron invalid geometry or version mismatch.

◆ from_bezier_grid()

static Surface occtl::Surface::from_bezier_grid ( occtl_graph_t graph,
const occtl_surface_bezier_create_info_t theInfo 
)
inlinestatic

Constructs a Bezier surface from a row-major pole grid.

Exceptions
Erroron invalid geometry or version mismatch.

◆ from_bspline()

static Surface occtl::Surface::from_bspline ( occtl_graph_t graph,
const occtl_surface_bspline_create_info_t theInfo 
)
inlinestatic

Constructs a B-spline surface from the given create info.

Exceptions
Erroron invalid geometry or version mismatch.

◆ from_cone()

static Surface occtl::Surface::from_cone ( occtl_graph_t graph,
const occtl_geom_conical_surface_t theCone 
)
inlinestatic

Constructs a surface from a cone.

Exceptions
Erroron invalid geometry.

◆ from_cylinder()

static Surface occtl::Surface::from_cylinder ( occtl_graph_t graph,
const occtl_geom_cylindrical_surface_t theCyl 
)
inlinestatic

Constructs a surface from a cylinder.

Exceptions
Erroron invalid geometry.

◆ from_extrusion()

static Surface occtl::Surface::from_extrusion ( occtl_graph_t graph,
const occtl_surface_extrusion_create_info_t theInfo 
)
inlinestatic

Constructs a surface of linear extrusion.

Exceptions
Erroron invalid geometry or version mismatch.

◆ from_interpolation()

static Surface occtl::Surface::from_interpolation ( occtl_graph_t graph,
const occtl_surface_interpolated_info_t theInfo 
)
inlinestatic

Constructs a surface by interpolating through the given point grid.

Exceptions
Erroron invalid geometry or version mismatch.

◆ from_plane()

static Surface occtl::Surface::from_plane ( occtl_graph_t graph,
const occtl_geom_plane_t thePlane 
)
inlinestatic

Constructs a surface from a plane.

Exceptions
Erroron invalid geometry.

◆ from_point_grid()

static Surface occtl::Surface::from_point_grid ( occtl_graph_t graph,
const occtl_surface_point_grid_create_info_t theInfo 
)
inlinestatic

Constructs a B-spline surface from a point grid.

Exceptions
Erroron invalid geometry or version mismatch.

◆ from_revolution()

static Surface occtl::Surface::from_revolution ( occtl_graph_t graph,
const occtl_surface_revolution_create_info_t theInfo 
)
inlinestatic

Constructs a surface of revolution.

Exceptions
Erroron invalid geometry or version mismatch.

◆ from_sphere()

static Surface occtl::Surface::from_sphere ( occtl_graph_t graph,
const occtl_geom_spherical_surface_t theSphere 
)
inlinestatic

Constructs a surface from a sphere.

Exceptions
Erroron invalid geometry.

◆ from_torus()

static Surface occtl::Surface::from_torus ( occtl_graph_t graph,
const occtl_geom_toroidal_surface_t theTorus 
)
inlinestatic

Constructs a surface from a torus.

Exceptions
Erroron invalid geometry.

◆ intersect_curve()

std::vector< occtl_point3_t > occtl::Surface::intersect_curve ( const Curve theCurve) const
inline

Computes intersection points with a curve. Two-call pattern handled internally; returns a vector of intersection points.

Exceptions
Erroron NULL handle or computation failure.

◆ intersect_surface()

std::vector< Curve > occtl::Surface::intersect_surface ( const Surface theOther,
double  theTolerance = 1.0e-7 
) const
inline

Computes intersection curves with another surface. Each result curve wraps a rep id in the same graph.

Exceptions
Erroron NULL handle or computation failure.

◆ is_closed()

int32_t occtl::Surface::is_closed ( ) const
inline

Returns 1 when the surface is closed in both U and V directions.

Exceptions
Errorwhen the underlying call fails.

◆ is_periodic()

int32_t occtl::Surface::is_periodic ( ) const
inline

Returns 1 when the surface is periodic in either U or V direction.

Exceptions
Errorwhen the underlying call fails.

◆ is_u_periodic()

int32_t occtl::Surface::is_u_periodic ( ) const
inline

Returns 1 when the surface is periodic in the U direction.

Exceptions
Errorwhen the underlying call fails.

◆ is_v_periodic()

int32_t occtl::Surface::is_v_periodic ( ) const
inline

Returns 1 when the surface is periodic in the V direction.

Exceptions
Errorwhen the underlying call fails.

◆ kind()

occtl_surface_kind_t occtl::Surface::kind ( ) const
inline

Returns the kind of surface this handle holds.

Exceptions
Errorwhen the underlying call fails.

◆ parameter_range()

void occtl::Surface::parameter_range ( double &  theUMin,
double &  theUMax,
double &  theVMin,
double &  theVMax 
) const
inline

Returns the parameter range via out-parameters.

Exceptions
Errorwhen the underlying call fails.

◆ project_point()

std::tuple< double, double, double > occtl::Surface::project_point ( const Point3 thePoint) const
inline

Projects a point onto the surface.

Returns
A tuple of (u, v, distance).
Exceptions
Errorwhen the underlying call fails.

◆ reversed()

Surface occtl::Surface::reversed ( ) const
inline

Returns a U-reversed copy of this surface stored in the same graph.

Exceptions
Errorwhen the underlying call fails.

◆ rotated()

Surface occtl::Surface::rotated ( const Axis1Placement theAxis,
double  theAngle 
) const
inline

Returns a rotated copy of this surface stored in the same graph.

Exceptions
Errorwhen the underlying call fails.

◆ scaled()

Surface occtl::Surface::scaled ( const Point3 theOrigin,
double  theFactor 
) const
inline

Returns a scaled copy of this surface stored in the same graph.

Exceptions
Errorwhen the underlying call fails.

◆ transformed()

Surface occtl::Surface::transformed ( const Transform theTrsf) const
inline

Returns a transformed copy of this surface stored in the same graph.

Exceptions
Errorwhen the underlying call fails.

◆ translated()

Surface occtl::Surface::translated ( const Vector3 theDelta) const
inline

Returns a translated copy of this surface stored in the same graph.

Exceptions
Errorwhen the underlying call fails.

◆ uv_of_point()

std::pair< double, double > occtl::Surface::uv_of_point ( const Point3 thePoint) const
inline

Returns the UV coordinates on the surface nearest to a point.

Returns
A pair of (u, v).
Exceptions
Errorwhen the underlying call fails.

The documentation for this class was generated from the following file: