FilletCalculus3D
Canonical path: NemAll_Python_Geometry.FilletCalculus3D
Class for 3D fillet calculation
Calculate
overloaded
Calculate(
line1: Line3D, line2: Line3D, radius: float
) -> tuple[eFilletErrorCode, Line3D, Line3D, Arc3D]
Calculate(line1: Line3D, line2: Line3D) -> tuple[eFilletErrorCode, Arc3D]
Calculate fillet between two parallel non collinear 3d lines. The end point of the first line must lie on the same plane as start point of the second line and plane is perpendicular to both lines.
Parameters:
Returns:
-
tuple[eFilletErrorCode, Arc3D]
–tuple(error code, calculated fillet)
Calculate(
line1: Line3D,
endPoint: eLinePointIdentification,
polyline: Polyline3D,
startLineIndex: int,
endLineIndex: int,
radius: float,
) -> tuple[eFilletErrorCode, Line3D, Line3D, Arc3D]
Calculate fillet between line1 and line2. Line2 is created as line between end point of line1 (by parameter "endPoint") and point from polyline (limited with "startPointIndex" and "endPointIndex")
Parameters:
-
line1
(Line3D
) –Line 1 for fillet
-
endPoint
(eLinePointIdentification
) –Sign for line2 (from where point of line1 should be start line2)
-
polyline
(Polyline3D
) –Polyline (buffer of end points for line2)
-
startLineIndex
(int
) –Start point index for polyline
-
endLineIndex
(int
) –End point index for polyline
-
radius
(float
) –radius of fillet
Returns:
-
tuple[eFilletErrorCode, Line3D, Line3D, Arc3D]
–tuple(error code, Line 1 for fillet, Line 2 from fillet calculation, Calculated fillet)
Calculate(
polyhedron: Polyhedron3D,
edges: VecSizeTList,
radius: float,
propagation: bool,
) -> tuple[eFilletErrorCode, BRep3D]
Calculate fillet on selected edges of given Polyhedron3D
Parameters:
-
polyhedron
(Polyhedron3D
) –polyhedron to fillet
-
edges
(VecSizeTList
) –edges to fillet
-
radius
(float
) –fillet sphere radius
-
propagation
(bool
) –flag for propagation of neighboring edges
Returns:
-
tuple[eFilletErrorCode, BRep3D]
–tuple(error code, result BRep3D)
Calculate(brep: BRep3D, radius: float) -> tuple[eFilletErrorCode, BRep3D]
Calculate fillet on all edges of given BRep3D
Parameters:
-
brep
(BRep3D
) –brep to fillet
-
radius
(float
) –fillet sphere radius
Returns:
-
tuple[eFilletErrorCode, BRep3D]
–tuple(error code, brep to fillet)
Calculate(
brep: BRep3D, edges: VecSizeTList, radius: float, propagation: bool
) -> tuple[eFilletErrorCode, BRep3D]
Calculate fillet on selected edges of given BRep3D
Parameters:
-
brep
(BRep3D
) –brep to fillet
-
edges
(VecSizeTList
) –edges to fillet
-
radius
(float
) –fillet sphere radius
-
propagation
(bool
) –flag for propagation of neighboring edges
Returns:
-
tuple[eFilletErrorCode, BRep3D]
–tuple(error code, brep to fillet)