OCCsurface
¤
OCCSurface(native_surface: Geom_Surface, name: str | None = None)
Class representing a general surface object.
Parameters:
-
native_surface(Geom_Surface) –The native OCC surface.
-
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.
Functions¤
aabb
¤
boundary
¤
closest_point
¤
closest_point(
point: Point, return_parameters: bool = False
) -> Point | tuple[Point, tuple[float, float]]
curvature_at
¤
frame_at
¤
from_face
classmethod
¤
from_face(face: TopoDS_Face) -> OCCSurface
Construct a surface from an existing OCC TopoDS_Face.
Parameters:
-
face(TopoDS_Face) –An OCC face in wich the surface is embedded.
Returns:
from_native
classmethod
¤
from_native(native_surface: Geom_Surface) -> OCCSurface
Construct a surface from an existing OCC Surface.
Parameters:
-
native_surface(Geom_Surface) –An OCC surface.
Returns:
-
OCCSurface–The constructed surface.
from_occ
classmethod
¤
from_occ(native_surface: Geom_Surface) -> OCCSurface
Construct a surface from an existing OCC Surface.
Parameters:
-
native_surface(Geom_Surface) –An OCC surface.
Returns:
-
OCCSurface–The constructed surface.
Warnings
.. deprecated:: 1.3
Use from_native instead
gaussian_curvature_at
¤
intersections_with_curve
¤
intersections_with_line
¤
isocurve_u
¤
isocurve_v
¤
mean_curvature_at
¤
obb
¤
point_at
¤
to_step
¤
transform
¤
transform(T: Transformation) -> None