OCCsurface
¤
OCCSurface(native_surface, name: str | None = None)
Class representing a general surface object.
Parameters:
-
native_surface–The native OCC surface handle wrapper.
-
name(str | None, default:None) –The name of the surface.
Attributes:
-
continuity–The degree of continuity of the surface.
-
degree_u–The degree of the surface in the U direction.
-
degree_v–The degree of the surface in the V direction.
-
domain_u(tuple[float, float]) –The parameter domain of the surface in the U direction.
-
domain_v(tuple[float, float]) –The parameter domain of the surface in the V direction.
-
is_periodic_u(bool) –Flag indicating if the surface is periodic in the U direction.
-
is_periodic_v(bool) –Flag indicating if the surface is periodic in the V direction.
-
API
Geometry
OCCSurface Methods:
Methods:¤
aabb
¤
Compute the axis aligned bounding box of the surface.
closest_point
¤
closest_point(point: Point, return_parameters: bool = False) -> Point | tuple[Point, tuple[float, float]]
Compute the closest point on the surface to a given point.
curvature_at
¤
Compute the curvature at a point on the surface.
from_face
classmethod
¤
from_face(face) -> OCCSurface
Construct a surface from an existing OCC TopoDS_Face (Shape).
from_native
classmethod
¤
from_native(native_surface) -> OCCSurface
Construct a surface from an existing OCC surface handle.
from_occ
classmethod
¤
from_occ(native_surface) -> OCCSurface
Construct a surface from an existing OCC surface handle.
.. deprecated:: 1.3
Use from_native instead
gaussian_curvature_at
¤
Compute the Gaussian curvature at a point on the surface.
intersections_with_curve
¤
Compute the intersections with a curve.
intersections_with_line
¤
Compute the intersections with a line.
mean_curvature_at
¤
Compute the mean curvature at a point on the surface.
to_step
¤
Write the surface geometry to a STP file.