diff --git a/src/Mod/Part/App/ArcOfParabolaPy.xml b/src/Mod/Part/App/ArcOfParabolaPy.xml
index a9b80ab471..23c980f010 100644
--- a/src/Mod/Part/App/ArcOfParabolaPy.xml
+++ b/src/Mod/Part/App/ArcOfParabolaPy.xml
@@ -13,7 +13,7 @@
Constructor="true">
- Describes a portion of an parabola
+ Describes a portion of a parabola
diff --git a/src/Mod/Part/App/AttachExtensionPy.xml b/src/Mod/Part/App/AttachExtensionPy.xml
index 7d5845df34..d47cc4fb5b 100644
--- a/src/Mod/Part/App/AttachExtensionPy.xml
+++ b/src/Mod/Part/App/AttachExtensionPy.xml
@@ -15,14 +15,18 @@
- positionBySupport(): Reposition object based on AttachmentSupport, MapMode and MapPathParameter properties.
+ positionBySupport() -> bool
+
+Reposition object based on AttachmentSupport, MapMode and MapPathParameter properties.
Returns True if attachment calculation was successful, false if object is not attached and Placement wasn't updated,
and raises an exception if attachment calculation fails.
- changeAttacherType(typename): Changes Attacher class of this object.
+ changeAttacherType(typename) -> None
+
+Changes Attacher class of this object.
typename: string. The following are accepted so far:
'Attacher::AttachEngine3D'
'Attacher::AttachEnginePlane'
diff --git a/src/Mod/Part/App/BRepOffsetAPI_MakeFillingPy.xml b/src/Mod/Part/App/BRepOffsetAPI_MakeFillingPy.xml
index 36feae6f29..1377b98522 100644
--- a/src/Mod/Part/App/BRepOffsetAPI_MakeFillingPy.xml
+++ b/src/Mod/Part/App/BRepOffsetAPI_MakeFillingPy.xml
@@ -19,44 +19,44 @@
- setConstrParam(Tol2d=0.00001, Tol3d=0.0001, TolAng=0.01, TolCurv=0.1)
- Sets the values of Tolerances used to control the constraint.
+setConstrParam(Tol2d=0.00001, Tol3d=0.0001, TolAng=0.01, TolCurv=0.1)
+Sets the values of Tolerances used to control the constraint.
- setResolParam(Degree=3, NbPtsOnCur=15, NbIter=2, Anisotropy=False)
- Sets the parameters used for resolution.
+setResolParam(Degree=3, NbPtsOnCur=15, NbIter=2, Anisotropy=False)
+Sets the parameters used for resolution.
- setApproxParam(MaxDeg=8, MaxSegments=9)
- Sets the parameters used to approximate the filling the surface
+setApproxParam(MaxDeg=8, MaxSegments=9)
+Sets the parameters used to approximate the filling the surface
- loadInitSurface(face)
- Loads the initial surface.
+loadInitSurface(face)
+Loads the initial surface.
- add(Edge, Order, IsBound=True)
- add(Edge, Support, Order, IsBound=True)
- add(Support, Order)
- add(Point)
- add(U, V, Support, Order)
- Adds a new constraint.
+add(Edge, Order, IsBound=True)
+add(Edge, Support, Order, IsBound=True)
+add(Support, Order)
+add(Point)
+add(U, V, Support, Order)
+Adds a new constraint.
@@ -73,32 +73,32 @@
- G0Error([int])
- Returns the maximum distance between the result and the constraints.
+G0Error([int])
+Returns the maximum distance between the result and the constraints.
- G1Error([int])
- Returns the maximum angle between the result and the constraints.
+G1Error([int])
+Returns the maximum angle between the result and the constraints.
- G2Error([int])
- Returns the greatest difference in curvature between the result and the constraints.
+G2Error([int])
+Returns the greatest difference in curvature between the result and the constraints.
- shape()
- Returns the resulting shape.
+shape()
+Returns the resulting shape.
diff --git a/src/Mod/Part/App/BRepOffsetAPI_MakePipeShellPy.xml b/src/Mod/Part/App/BRepOffsetAPI_MakePipeShellPy.xml
index 618ce2a588..cbf0276268 100644
--- a/src/Mod/Part/App/BRepOffsetAPI_MakePipeShellPy.xml
+++ b/src/Mod/Part/App/BRepOffsetAPI_MakePipeShellPy.xml
@@ -16,155 +16,155 @@
Low level API to create a PipeShell using OCC API
- Ref: https://dev.opencascade.org/doc/refman/html/class_b_rep_offset_a_p_i___make_pipe_shell.html
+Ref: https://dev.opencascade.org/doc/refman/html/class_b_rep_offset_a_p_i___make_pipe_shell.html
setFrenetMode(True|False)
- Sets a Frenet or a CorrectedFrenet trihedron to perform the sweeping.
- True = Frenet
- False = CorrectedFrenet
+Sets a Frenet or a CorrectedFrenet trihedron to perform the sweeping.
+True = Frenet
+False = CorrectedFrenet
setTrihedronMode(point,direction)
- Sets a fixed trihedron to perform the sweeping.
- All sections will be parallel.
+Sets a fixed trihedron to perform the sweeping.
+All sections will be parallel.
setBiNormalMode(direction)
- Sets a fixed BiNormal direction to perform the sweeping.
- Angular relations between the section(s) and the BiNormal direction will be constant.
+Sets a fixed BiNormal direction to perform the sweeping.
+Angular relations between the section(s) and the BiNormal direction will be constant.
setSpineSupport(shape)
- Sets support to the spine to define the BiNormal of the trihedron, like the normal to the surfaces.
- Warning: To be effective, Each edge of the spine must have an representation on one face of SpineSupport.
+Sets support to the spine to define the BiNormal of the trihedron, like the normal to the surfaces.
+Warning: To be effective, Each edge of the spine must have an representation on one face of SpineSupport.
setAuxiliarySpine(wire, CurvilinearEquivalence, TypeOfContact)
- Sets an auxiliary spine to define the Normal.
+Sets an auxiliary spine to define the Normal.
- CurvilinearEquivalence = bool
- For each Point of the Spine P, an Point Q is evalued on AuxiliarySpine.
- If CurvilinearEquivalence=True Q split AuxiliarySpine with the same length ratio than P split Spine.
+CurvilinearEquivalence = bool
+For each Point of the Spine P, an Point Q is evalued on AuxiliarySpine.
+If CurvilinearEquivalence=True Q split AuxiliarySpine with the same length ratio than P split Spine.
- * OCC >= 6.7
- TypeOfContact = long
- 0: No contact
- 1: Contact
- 2: Contact On Border (The auxiliary spine becomes a boundary of the swept surface)
+* OCC >= 6.7
+TypeOfContact = long
+0: No contact
+1: Contact
+2: Contact On Border (The auxiliary spine becomes a boundary of the swept surface)
add(shape Profile, bool WithContact=False, bool WithCorrection=False)
- add(shape Profile, vertex Location, bool WithContact=False, bool WithCorrection=False)
- Adds the section Profile to this framework.
- First and last sections may be punctual, so the shape Profile may be both wire and vertex.
- If WithContact is true, the section is translated to be in contact with the spine.
- If WithCorrection is true, the section is rotated to be orthogonal to the spine tangent in the correspondent point.
+add(shape Profile, vertex Location, bool WithContact=False, bool WithCorrection=False)
+Adds the section Profile to this framework.
+First and last sections may be punctual, so the shape Profile may be both wire and vertex.
+If WithContact is true, the section is translated to be in contact with the spine.
+If WithCorrection is true, the section is rotated to be orthogonal to the spine tangent in the correspondent point.
remove(shape Profile)
- Removes the section Profile from this framework.
+Removes the section Profile from this framework.
isReady()
- Returns true if this tool object is ready to build the shape.
+Returns true if this tool object is ready to build the shape.
getStatus()
- Get a status, when Simulate or Build failed.
+Get a status, when Simulate or Build failed.
makeSolid()
- Transforms the sweeping Shell in Solid. If a propfile is not closed returns False.
+Transforms the sweeping Shell in Solid. If a propfile is not closed returns False.
setTolerance( tol3d, boundTol, tolAngular)
- Tol3d = 3D tolerance
- BoundTol = boundary tolerance
- TolAngular = angular tolerance
+Tol3d = 3D tolerance
+BoundTol = boundary tolerance
+TolAngular = angular tolerance
0: BRepBuilderAPI_Transformed
- 1: BRepBuilderAPI_RightCorner
- 2: BRepBuilderAPI_RoundCorner
+1: BRepBuilderAPI_RightCorner
+2: BRepBuilderAPI_RoundCorner
firstShape()
- Returns the Shape of the bottom of the sweep.
+Returns the Shape of the bottom of the sweep.
lastShape()
- Returns the Shape of the top of the sweep.
+Returns the Shape of the top of the sweep.
build()
- Builds the resulting shape.
+Builds the resulting shape.
shape()
- Returns the resulting shape.
+Returns the resulting shape.
generated(shape S)
- Returns a list of new shapes generated from the shape S by the shell-generating algorithm.
+Returns a list of new shapes generated from the shape S by the shell-generating algorithm.
setMaxDegree(int degree)
- Define the maximum V degree of resulting surface.
+Define the maximum V degree of resulting surface.
setMaxSegments(int num)
- Define the maximum number of spans in V-direction on resulting surface.
+Define the maximum number of spans in V-direction on resulting surface.
setForceApproxC1(bool)
- Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0.
+Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0.
simulate(int nbsec)
- Simulates the resulting shape by calculating the given number of cross-sections.
+Simulates the resulting shape by calculating the given number of cross-sections.
diff --git a/src/Mod/Part/App/BSplineCurvePy.xml b/src/Mod/Part/App/BSplineCurvePy.xml
index a37377a614..393213c205 100644
--- a/src/Mod/Part/App/BSplineCurvePy.xml
+++ b/src/Mod/Part/App/BSplineCurvePy.xml
@@ -68,7 +68,7 @@ B-Spline curve curve. This value is 25.
corresponding to the first or last parameter
of this B-Spline curve.
-
+
@@ -76,7 +76,7 @@ of this B-Spline curve.
corresponding to the first or last parameter
of this B-Spline curve.
-
+
@@ -86,10 +86,9 @@ of this B-Spline curve.
-
- Returns true if this B-Spline curve is rational.
- A B-Spline curve is rational if, at the time of construction,
- the weight table has been initialized.
+ Returns true if this B-Spline curve is rational.
+A B-Spline curve is rational if, at the time of construction,
+the weight table has been initialized.
@@ -100,9 +99,8 @@ of this B-Spline curve.
-
- Returns true if the distance between the start point and end point of
- this B-Spline curve is less than or equal to gp::Resolution().
+ Returns true if the distance between the start point and end point of
+this B-Spline curve is less than or equal to gp::Resolution().
@@ -117,80 +115,79 @@ done if Degree is less than or equal to the current degree.
-
- increaseMultiplicity(int index, int mult)
- increaseMultiplicity(int start, int end, int mult)
- Increases multiplicity of knots up to mult.
+ increaseMultiplicity(int index, int mult)
+increaseMultiplicity(int start, int end, int mult)
+Increases multiplicity of knots up to mult.
- index: the index of a knot to modify (1-based)
- start, end: index range of knots to modify.
- If mult is lower or equal to the current multiplicity nothing is done. If mult is higher than the degree the degree is used.
+index: the index of a knot to modify (1-based)
+start, end: index range of knots to modify.
+If mult is lower or equal to the current multiplicity nothing is done.
+If mult is higher than the degree the degree is used.
-
- incrementMultiplicity(int start, int end, int mult)
- Raises multiplicity of knots by mult.
+ incrementMultiplicity(int start, int end, int mult)
- start, end: index range of knots to modify.
+Raises multiplicity of knots by mult.
+
+start, end: index range of knots to modify.
-
- insertKnot(u, mult = 1, tol = 0.0)
- Inserts a knot value in the sequence of knots. If u is an existing knot the
- multiplicity is increased by mult.
+ insertKnot(u, mult = 1, tol = 0.0)
+
+Inserts a knot value in the sequence of knots. If u is an existing knot the
+multiplicity is increased by mult.
-
- insertKnots(list_of_floats, list_of_ints, tol = 0.0, bool_add = True)
- Inserts a set of knots values in the sequence of knots.
+ insertKnots(list_of_floats, list_of_ints, tol = 0.0, bool_add = True)
- For each u = list_of_floats[i], mult = list_of_ints[i]
+Inserts a set of knots values in the sequence of knots.
- If u is an existing knot the multiplicity is increased by mult if bool_add is
- True, otherwise increased to mult.
+For each u = list_of_floats[i], mult = list_of_ints[i]
- If u is not on the parameter range nothing is done.
+If u is an existing knot the multiplicity is increased by mult if bool_add is
+True, otherwise increased to mult.
- If the multiplicity is negative or null nothing is done. The new multiplicity
- is limited to the degree.
+If u is not on the parameter range nothing is done.
- The tolerance criterion for knots equality is the max of Epsilon(U) and ParametricTolerance.
+If the multiplicity is negative or null nothing is done. The new multiplicity
+is limited to the degree.
+
+The tolerance criterion for knots equality is the max of Epsilon(U) and ParametricTolerance.
-
- removeKnot(Index, M, tol)
+ removeKnot(Index, M, tol)
- Reduces the multiplicity of the knot of index Index to M.
- If M is equal to 0, the knot is removed.
- With a modification of this type, the array of poles is also modified.
- Two different algorithms are systematically used to compute the new
- poles of the curve. If, for each pole, the distance between the pole
- calculated using the first algorithm and the same pole calculated using
- the second algorithm, is less than Tolerance, this ensures that the curve
- is not modified by more than Tolerance. Under these conditions, true is
- returned; otherwise, false is returned.
+Reduces the multiplicity of the knot of index Index to M.
+If M is equal to 0, the knot is removed.
+With a modification of this type, the array of poles is also modified.
+Two different algorithms are systematically used to compute the new
+poles of the curve. If, for each pole, the distance between the pole
+calculated using the first algorithm and the same pole calculated using
+the second algorithm, is less than Tolerance, this ensures that the curve
+is not modified by more than Tolerance. Under these conditions, true is
+returned; otherwise, false is returned.
- A low tolerance is used to prevent modification of the curve.
- A high tolerance is used to 'smooth' the curve.
+A low tolerance is used to prevent modification of the curve.
+A high tolerance is used to 'smooth' the curve.
-
- segment(u1,u2)
- Modifies this B-Spline curve by segmenting it.
+ segment(u1,u2)
+
+Modifies this B-Spline curve by segmenting it.
@@ -260,9 +257,9 @@ ensures that:
-
- movePoint(U, P, Index1, Index2)
- Moves the point of parameter U of this B-Spline curve to P.
+ movePoint(U, P, Index1, Index2)
+
+Moves the point of parameter U of this B-Spline curve to P.
Index1 and Index2 are the indexes in the table of poles of this B-Spline curve
of the first and last poles designated to be moved.
@@ -303,35 +300,35 @@ from the knots table of this B-Spline curve.
-
- Replaces this B-Spline curve by approximating a set of points.
- The function accepts keywords as arguments.
+ Replaces this B-Spline curve by approximating a set of points.
- approximate(Points = list_of_points)
+The function accepts keywords as arguments.
- Optional arguments :
+approximate(Points = list_of_points)
- DegMin = integer (3) : Minimum degree of the curve.
- DegMax = integer (8) : Maximum degree of the curve.
- Tolerance = float (1e-3) : approximating tolerance.
- Continuity = string ('C2') : Desired continuity of the curve.
- Possible values : 'C0','G1','C1','G2','C2','C3','CN'
+Optional arguments :
- LengthWeight = float, CurvatureWeight = float, TorsionWeight = float
- If one of these arguments is not null, the functions approximates the
- points using variational smoothing algorithm, which tries to minimize
- additional criterium:
- LengthWeight*CurveLength + CurvatureWeight*Curvature + TorsionWeight*Torsion
- Continuity must be C0, C1(with DegMax >= 3) or C2(with DegMax >= 5).
+DegMin = integer (3) : Minimum degree of the curve.
+DegMax = integer (8) : Maximum degree of the curve.
+Tolerance = float (1e-3) : approximating tolerance.
+Continuity = string ('C2') : Desired continuity of the curve.
+Possible values : 'C0','G1','C1','G2','C2','C3','CN'
- Parameters = list of floats : knot sequence of the approximated points.
- This argument is only used if the weights above are all null.
+LengthWeight = float, CurvatureWeight = float, TorsionWeight = float
+If one of these arguments is not null, the functions approximates the
+points using variational smoothing algorithm, which tries to minimize
+additional criterium:
+LengthWeight*CurveLength + CurvatureWeight*Curvature + TorsionWeight*Torsion
+ Continuity must be C0, C1(with DegMax >= 3) or C2(with DegMax >= 5).
- ParamType = string ('Uniform','Centripetal' or 'ChordLength')
- Parameterization type. Only used if weights and Parameters above aren't specified.
+Parameters = list of floats : knot sequence of the approximated points.
+This argument is only used if the weights above are all null.
- Note : Continuity of the spline defaults to C2. However, it may not be applied if
- it conflicts with other parameters ( especially DegMax ).
+ParamType = string ('Uniform','Centripetal' or 'ChordLength')
+Parameterization type. Only used if weights and Parameters above aren't specified.
+
+Note : Continuity of the spline defaults to C2. However, it may not be applied if
+it conflicts with other parameters ( especially DegMax ).
@@ -342,135 +339,129 @@ from the knots table of this B-Spline curve.
-
- Replaces this B-Spline curve by interpolating a set of points.
- The function accepts keywords as arguments.
+ Replaces this B-Spline curve by interpolating a set of points.
- interpolate(Points = list_of_points)
+The function accepts keywords as arguments.
- Optional arguments :
+interpolate(Points = list_of_points)
- PeriodicFlag = bool (False) : Sets the curve closed or opened.
- Tolerance = float (1e-6) : interpolating tolerance
+Optional arguments :
- Parameters : knot sequence of the interpolated points.
- If not supplied, the function defaults to chord-length parameterization.
- If PeriodicFlag == True, one extra parameter must be appended.
+PeriodicFlag = bool (False) : Sets the curve closed or opened.
+Tolerance = float (1e-6) : interpolating tolerance
- EndPoint Tangent constraints :
+Parameters : knot sequence of the interpolated points.
+If not supplied, the function defaults to chord-length parameterization.
+If PeriodicFlag == True, one extra parameter must be appended.
- InitialTangent = vector, FinalTangent = vector
- specify tangent vectors for starting and ending points
- of the BSpline. Either none, or both must be specified.
+EndPoint Tangent constraints :
- Full Tangent constraints :
+InitialTangent = vector, FinalTangent = vector
+specify tangent vectors for starting and ending points
+of the BSpline. Either none, or both must be specified.
- Tangents = list_of_vectors, TangentFlags = list_of_bools
- Both lists must have the same length as Points list.
- Tangents specifies the tangent vector of each point in Points list.
- TangentFlags (bool) activates or deactivates the corresponding tangent.
- These arguments will be ignored if EndPoint Tangents (above) are also defined.
+Full Tangent constraints :
- Note : Continuity of the spline defaults to C2. However, if periodic, or tangents
- are supplied, the continuity will drop to C1.
+Tangents = list_of_vectors, TangentFlags = list_of_bools
+Both lists must have the same length as Points list.
+Tangents specifies the tangent vector of each point in Points list.
+TangentFlags (bool) activates or deactivates the corresponding tangent.
+These arguments will be ignored if EndPoint Tangents (above) are also defined.
+
+Note : Continuity of the spline defaults to C2. However, if periodic, or tangents
+are supplied, the continuity will drop to C1.
-
- Builds a B-Spline by a list of poles.
- arguments: poles (sequence of Base.Vector), [periodic (default is False), degree (default is 3), interpolate (default is False)]
+ Builds a B-Spline by a list of poles.
+arguments: poles (sequence of Base.Vector), [periodic (default is False), degree (default is 3), interpolate (default is False)]
- Examples:
- from FreeCAD import Base
- import Part
- V = Base.Vector
- poles = [V(-2, 2, 0),V(0, 2, 1),V(2, 2, 0),V(2, -2, 0),V(0, -2, 1),V(-2, -2, 0)]
+Examples:
+from FreeCAD import Base
+import Part
+V = Base.Vector
+poles = [V(-2, 2, 0),V(0, 2, 1),V(2, 2, 0),V(2, -2, 0),V(0, -2, 1),V(-2, -2, 0)]
- # non-periodic spline
- n=Part.BSplineCurve()
- n.buildFromPoles(poles)
- Part.show(n.toShape())
+# non-periodic spline
+n=Part.BSplineCurve()
+n.buildFromPoles(poles)
+Part.show(n.toShape())
- # periodic spline
- n=Part.BSplineCurve()
- n.buildFromPoles(poles, True)
- Part.show(n.toShape())
+# periodic spline
+n=Part.BSplineCurve()
+n.buildFromPoles(poles, True)
+Part.show(n.toShape())
-
- Builds a B-Spline by a lists of Poles, Mults, Knots.
- arguments: poles (sequence of Base.Vector), [mults , knots, periodic, degree, weights (sequence of float), CheckRational]
+ Builds a B-Spline by a lists of Poles, Mults, Knots.
+arguments: poles (sequence of Base.Vector), [mults , knots, periodic, degree, weights (sequence of float), CheckRational]
- Examples:
- from FreeCAD import Base
- import Part
- V=Base.Vector
- poles=[V(-10,-10),V(10,-10),V(10,10),V(-10,10)]
+Examples:
+from FreeCAD import Base
+import Part
+V=Base.Vector
+poles=[V(-10,-10),V(10,-10),V(10,10),V(-10,10)]
- # non-periodic spline
- n=Part.BSplineCurve()
- n.buildFromPolesMultsKnots(poles,(3,1,3),(0,0.5,1),False,2)
- Part.show(n.toShape())
+# non-periodic spline
+n=Part.BSplineCurve()
+n.buildFromPolesMultsKnots(poles,(3,1,3),(0,0.5,1),False,2)
+Part.show(n.toShape())
- # periodic spline
- p=Part.BSplineCurve()
- p.buildFromPolesMultsKnots(poles,(1,1,1,1,1),(0,0.25,0.5,0.75,1),True,2)
- Part.show(p.toShape())
+# periodic spline
+p=Part.BSplineCurve()
+p.buildFromPolesMultsKnots(poles,(1,1,1,1,1),(0,0.25,0.5,0.75,1),True,2)
+Part.show(p.toShape())
- # periodic and rational spline
- r=Part.BSplineCurve()
- r.buildFromPolesMultsKnots(poles,(1,1,1,1,1),(0,0.25,0.5,0.75,1),True,2,(1,0.8,0.7,0.2))
- Part.show(r.toShape())
+# periodic and rational spline
+r=Part.BSplineCurve()
+r.buildFromPolesMultsKnots(poles,(1,1,1,1,1),(0,0.25,0.5,0.75,1),True,2,(1,0.8,0.7,0.2))
+Part.show(r.toShape())
-
- Build a list of Bezier splines.
+ Build a list of Bezier splines.
-
- Build a list of arcs and lines to approximate the B-spline.
- toBiArcs(tolerance) -> list.
+ Build a list of arcs and lines to approximate the B-spline.
+toBiArcs(tolerance) -> list.
-
- Build a new spline by joining this and a second spline.
+ Build a new spline by joining this and a second spline.
-
- makeC1Continuous(tol = 1e-6, ang_tol = 1e-7)
- Reduces as far as possible the multiplicities of the knots of this BSpline
- (keeping the geometry). It returns a new BSpline, which could still be C0.
- tol is a geometrical tolerance.
- The tol_ang is angular tolerance, in radians. It sets tolerable angle mismatch
- of the tangents on the left and on the right to decide if the curve is G1 or
- not at a given point.
+ makeC1Continuous(tol = 1e-6, ang_tol = 1e-7)
+Reduces as far as possible the multiplicities of the knots of this BSpline
+(keeping the geometry). It returns a new BSpline, which could still be C0.
+tol is a geometrical tolerance.
+The tol_ang is angular tolerance, in radians. It sets tolerable angle mismatch
+of the tangents on the left and on the right to decide if the curve is G1 or
+not at a given point.
- Scales the knots list to fit the specified bounds.
- The shape of the curve is not modified.
- bspline_curve.scaleKnotsToBounds(u0, u1)
- Default arguments are (0.0, 1.0)
+Scales the knots list to fit the specified bounds.
+The shape of the curve is not modified.
+bspline_curve.scaleKnotsToBounds(u0, u1)
+Default arguments are (0.0, 1.0)
diff --git a/src/Mod/Part/App/BSplineCurvePyImp.cpp b/src/Mod/Part/App/BSplineCurvePyImp.cpp
index 95955c22d9..f09a6f0ecf 100644
--- a/src/Mod/Part/App/BSplineCurvePyImp.cpp
+++ b/src/Mod/Part/App/BSplineCurvePyImp.cpp
@@ -727,14 +727,14 @@ Py::Object BSplineCurvePy::getEndPoint() const
return Py::Vector(Base::Vector3d(pnt.X(), pnt.Y(), pnt.Z()));
}
-Py::Object BSplineCurvePy::getFirstUKnotIndex() const
+Py::Long BSplineCurvePy::getFirstUKnotIndex() const
{
Handle(Geom_BSplineCurve) curve = Handle(Geom_BSplineCurve)::DownCast
(getGeometryPtr()->handle());
return Py::Long(curve->FirstUKnotIndex());
}
-Py::Object BSplineCurvePy::getLastUKnotIndex() const
+Py::Long BSplineCurvePy::getLastUKnotIndex() const
{
Handle(Geom_BSplineCurve) curve = Handle(Geom_BSplineCurve)::DownCast
(getGeometryPtr()->handle());
diff --git a/src/Mod/Part/App/BSplineSurfacePy.xml b/src/Mod/Part/App/BSplineSurfacePy.xml
index 421beb54b1..ad2b031310 100644
--- a/src/Mod/Part/App/BSplineSurfacePy.xml
+++ b/src/Mod/Part/App/BSplineSurfacePy.xml
@@ -34,9 +34,9 @@
- Returns the value of the maximum polynomial degree of any
- B-Spline surface surface in either parametric directions.
- This value is 25.
+Returns the value of the maximum polynomial degree of any
+B-Spline surface surface in either parametric directions.
+This value is 25.
@@ -44,7 +44,7 @@
- Returns the number of poles of this B-Spline surface in the u parametric direction.
+Returns the number of poles of this B-Spline surface in the u parametric direction.
@@ -52,7 +52,7 @@
- Returns the number of poles of this B-Spline surface in the v parametric direction.
+Returns the number of poles of this B-Spline surface in the v parametric direction.
@@ -60,7 +60,7 @@
- Returns the number of knots of this B-Spline surface in the u parametric direction.
+Returns the number of knots of this B-Spline surface in the u parametric direction.
@@ -68,7 +68,7 @@
- Returns the number of knots of this B-Spline surface in the v parametric direction.
+Returns the number of knots of this B-Spline surface in the v parametric direction.
@@ -76,16 +76,16 @@
- Returns the index in the knot array associated with the u parametric direction,
- which corresponds to the first parameter of this B-Spline surface in the specified
- parametric direction.
+Returns the index in the knot array associated with the u parametric direction,
+which corresponds to the first parameter of this B-Spline surface in the specified
+parametric direction.
- The isoparametric curves corresponding to these values are the boundary curves of
- this surface.
+The isoparametric curves corresponding to these values are the boundary curves of
+this surface.
- Note: The index does not correspond to the first knot of the surface in the specified
- parametric direction unless the multiplicity of the first knot is equal to Degree + 1,
- where Degree is the degree of this surface in the corresponding parametric direction.
+Note: The index does not correspond to the first knot of the surface in the specified
+parametric direction unless the multiplicity of the first knot is equal to Degree + 1,
+where Degree is the degree of this surface in the corresponding parametric direction.
@@ -93,16 +93,16 @@
- Returns the index in the knot array associated with the u parametric direction,
- which corresponds to the last parameter of this B-Spline surface in the specified
- parametric direction.
+Returns the index in the knot array associated with the u parametric direction,
+which corresponds to the last parameter of this B-Spline surface in the specified
+parametric direction.
- The isoparametric curves corresponding to these values are the boundary curves of
- this surface.
+The isoparametric curves corresponding to these values are the boundary curves of
+this surface.
- Note: The index does not correspond to the first knot of the surface in the specified
- parametric direction unless the multiplicity of the last knot is equal to Degree + 1,
- where Degree is the degree of this surface in the corresponding parametric direction.
+Note: The index does not correspond to the first knot of the surface in the specified
+parametric direction unless the multiplicity of the last knot is equal to Degree + 1,
+where Degree is the degree of this surface in the corresponding parametric direction.
@@ -110,16 +110,16 @@
- Returns the index in the knot array associated with the v parametric direction,
- which corresponds to the first parameter of this B-Spline surface in the specified
- parametric direction.
+Returns the index in the knot array associated with the v parametric direction,
+which corresponds to the first parameter of this B-Spline surface in the specified
+parametric direction.
- The isoparametric curves corresponding to these values are the boundary curves of
- this surface.
+The isoparametric curves corresponding to these values are the boundary curves of
+this surface.
- Note: The index does not correspond to the first knot of the surface in the specified
- parametric direction unless the multiplicity of the first knot is equal to Degree + 1,
- where Degree is the degree of this surface in the corresponding parametric direction.
+Note: The index does not correspond to the first knot of the surface in the specified
+parametric direction unless the multiplicity of the first knot is equal to Degree + 1,
+where Degree is the degree of this surface in the corresponding parametric direction.
@@ -127,16 +127,16 @@
- Returns the index in the knot array associated with the v parametric direction,
- which corresponds to the last parameter of this B-Spline surface in the specified
- parametric direction.
+Returns the index in the knot array associated with the v parametric direction,
+which corresponds to the last parameter of this B-Spline surface in the specified
+parametric direction.
- The isoparametric curves corresponding to these values are the boundary curves of
- this surface.
+The isoparametric curves corresponding to these values are the boundary curves of
+this surface.
- Note: The index does not correspond to the first knot of the surface in the specified
- parametric direction unless the multiplicity of the last knot is equal to Degree + 1,
- where Degree is the degree of this surface in the corresponding parametric direction.
+Note: The index does not correspond to the first knot of the surface in the specified
+parametric direction unless the multiplicity of the last knot is equal to Degree + 1,
+where Degree is the degree of this surface in the corresponding parametric direction.
@@ -144,8 +144,8 @@
- Returns the knots sequence of this B-Spline surface in
- the u direction.
+Returns the knots sequence of this B-Spline surface in
+the u direction.
@@ -153,8 +153,8 @@
- Returns the knots sequence of this B-Spline surface in
- the v direction.
+Returns the knots sequence of this B-Spline surface in
+the v direction.
@@ -162,27 +162,27 @@
- Returns the parametric bounds (U1, U2, V1, V2) of this B-Spline surface.
+Returns the parametric bounds (U1, U2, V1, V2) of this B-Spline surface.
- Returns false if the equation of this B-Spline surface is polynomial
- (e.g. non-rational) in the u or v parametric direction.
- In other words, returns false if for each row of poles, the associated
- weights are identical
+Returns false if the equation of this B-Spline surface is polynomial
+(e.g. non-rational) in the u or v parametric direction.
+In other words, returns false if for each row of poles, the associated
+weights are identical
- Returns false if the equation of this B-Spline surface is polynomial
- (e.g. non-rational) in the u or v parametric direction.
- In other words, returns false if for each column of poles, the associated
- weights are identical
+Returns false if the equation of this B-Spline surface is polynomial
+(e.g. non-rational) in the u or v parametric direction.
+In other words, returns false if for each column of poles, the associated
+weights are identical
@@ -199,32 +199,32 @@
- Checks if this surface is closed in the u parametric direction.
- Returns true if, in the table of poles the first row and the last
- row are identical.
+Checks if this surface is closed in the u parametric direction.
+Returns true if, in the table of poles the first row and the last
+row are identical.
- Checks if this surface is closed in the v parametric direction.
- Returns true if, in the table of poles the first column and the
- last column are identical.
+Checks if this surface is closed in the v parametric direction.
+Returns true if, in the table of poles the first column and the
+last column are identical.
- increase(Int=UDegree, int=VDegree)
- Increases the degrees of this B-Spline surface to UDegree and VDegree
- in the u and v parametric directions respectively.
- As a result, the tables of poles, weights and multiplicities are modified.
- The tables of knots is not changed.
+increase(Int=UDegree, int=VDegree)
+Increases the degrees of this B-Spline surface to UDegree and VDegree
+in the u and v parametric directions respectively.
+As a result, the tables of poles, weights and multiplicities are modified.
+The tables of knots is not changed.
- Note: Nothing is done if the given degree is less than or equal to the
- current degree in the corresponding parametric direction.
+Note: Nothing is done if the given degree is less than or equal to the
+current degree in the corresponding parametric direction.
@@ -271,162 +271,162 @@
- Reduces to M the multiplicity of the knot of index Index in the given
- parametric direction. If M is 0, the knot is removed.
- With a modification of this type, the table of poles is also modified.
- Two different algorithms are used systematically to compute the new
- poles of the surface. For each pole, the distance between the pole
- calculated using the first algorithm and the same pole calculated using
- the second algorithm, is checked. If this distance is less than Tolerance
- it ensures that the surface is not modified by more than Tolerance.
- Under these conditions, the function returns true; otherwise, it returns
- false.
+Reduces to M the multiplicity of the knot of index Index in the given
+parametric direction. If M is 0, the knot is removed.
+With a modification of this type, the table of poles is also modified.
+Two different algorithms are used systematically to compute the new
+poles of the surface. For each pole, the distance between the pole
+calculated using the first algorithm and the same pole calculated using
+the second algorithm, is checked. If this distance is less than Tolerance
+it ensures that the surface is not modified by more than Tolerance.
+Under these conditions, the function returns true; otherwise, it returns
+false.
- A low tolerance prevents modification of the surface. A high tolerance
- 'smoothes' the surface.
+A low tolerance prevents modification of the surface. A high tolerance
+'smoothes' the surface.
- Reduces to M the multiplicity of the knot of index Index in the given
- parametric direction. If M is 0, the knot is removed.
- With a modification of this type, the table of poles is also modified.
- Two different algorithms are used systematically to compute the new
- poles of the surface. For each pole, the distance between the pole
- calculated using the first algorithm and the same pole calculated using
- the second algorithm, is checked. If this distance is less than Tolerance
- it ensures that the surface is not modified by more than Tolerance.
- Under these conditions, the function returns true; otherwise, it returns
- false.
+Reduces to M the multiplicity of the knot of index Index in the given
+parametric direction. If M is 0, the knot is removed.
+With a modification of this type, the table of poles is also modified.
+Two different algorithms are used systematically to compute the new
+poles of the surface. For each pole, the distance between the pole
+calculated using the first algorithm and the same pole calculated using
+the second algorithm, is checked. If this distance is less than Tolerance
+it ensures that the surface is not modified by more than Tolerance.
+Under these conditions, the function returns true; otherwise, it returns
+false.
- A low tolerance prevents modification of the surface. A high tolerance
- 'smoothes' the surface.
+A low tolerance prevents modification of the surface. A high tolerance
+'smoothes' the surface.
- Modifies this B-Spline surface by segmenting it between U1 and U2 in the
- u parametric direction and between V1 and V2 in the v parametric direction.
- Any of these values can be outside the bounds of this surface, but U2 must
- be greater than U1 and V2 must be greater than V1.
+Modifies this B-Spline surface by segmenting it between U1 and U2 in the
+u parametric direction and between V1 and V2 in the v parametric direction.
+Any of these values can be outside the bounds of this surface, but U2 must
+be greater than U1 and V2 must be greater than V1.
- All the data structure tables of this B-Spline surface are modified but the
- knots located between U1 and U2 in the u parametric direction, and between
- V1 and V2 in the v parametric direction are retained.
- The degree of the surface in each parametric direction is not modified.
+All the data structure tables of this B-Spline surface are modified but the
+knots located between U1 and U2 in the u parametric direction, and between
+V1 and V2 in the v parametric direction are retained.
+The degree of the surface in each parametric direction is not modified.
- Modifies this B-Spline surface by assigning the value K to the knot of index
- UIndex of the knots table corresponding to the u parametric direction.
- This modification remains relatively local, since K must lie between the values
- of the knots which frame the modified knot.
+Modifies this B-Spline surface by assigning the value K to the knot of index
+UIndex of the knots table corresponding to the u parametric direction.
+This modification remains relatively local, since K must lie between the values
+of the knots which frame the modified knot.
- You can also increase the multiplicity of the modified knot to M. Note however
- that it is not possible to decrease the multiplicity of a knot with this function.
+You can also increase the multiplicity of the modified knot to M. Note however
+that it is not possible to decrease the multiplicity of a knot with this function.
- Modifies this B-Spline surface by assigning the value K to the knot of index
- VIndex of the knots table corresponding to the v parametric direction.
- This modification remains relatively local, since K must lie between the values
- of the knots which frame the modified knot.
+Modifies this B-Spline surface by assigning the value K to the knot of index
+VIndex of the knots table corresponding to the v parametric direction.
+This modification remains relatively local, since K must lie between the values
+of the knots which frame the modified knot.
- You can also increase the multiplicity of the modified knot to M. Note however
- that it is not possible to decrease the multiplicity of a knot with this function.
+You can also increase the multiplicity of the modified knot to M. Note however
+that it is not possible to decrease the multiplicity of a knot with this function.
- Returns, for this B-Spline surface, in the u parametric direction
- the knot of index UIndex of the knots table.
+Returns, for this B-Spline surface, in the u parametric direction
+the knot of index UIndex of the knots table.
- Returns, for this B-Spline surface, in the v parametric direction
- the knot of index VIndex of the knots table.
+Returns, for this B-Spline surface, in the v parametric direction
+the knot of index VIndex of the knots table.
- Changes all knots of this B-Spline surface in the u parametric
- direction. The multiplicity of the knots is not modified.
+Changes all knots of this B-Spline surface in the u parametric
+direction. The multiplicity of the knots is not modified.
- Changes all knots of this B-Spline surface in the v parametric
- direction. The multiplicity of the knots is not modified.
+Changes all knots of this B-Spline surface in the v parametric
+direction. The multiplicity of the knots is not modified.
- Returns, for this B-Spline surface, the knots table
- in the u parametric direction
+Returns, for this B-Spline surface, the knots table
+in the u parametric direction
- Returns, for this B-Spline surface, the knots table
- in the v parametric direction
+Returns, for this B-Spline surface, the knots table
+in the v parametric direction
- Modifies this B-Spline surface by assigning P to the pole of
- index (UIndex, VIndex) in the poles table.
- The second syntax allows you also to change the weight of the
- modified pole. The weight is set to Weight. This syntax must
- only be used for rational surfaces.
- Modifies this B-Spline curve by assigning P to the pole of
- index Index in the poles table.
+Modifies this B-Spline surface by assigning P to the pole of
+index (UIndex, VIndex) in the poles table.
+The second syntax allows you also to change the weight of the
+modified pole. The weight is set to Weight. This syntax must
+only be used for rational surfaces.
+Modifies this B-Spline curve by assigning P to the pole of
+index Index in the poles table.
- Modifies this B-Spline surface by assigning values to all or part
- of the column of poles of index VIndex, of this B-Spline surface.
- You can also change the weights of the modified poles. The weights
- are set to the corresponding values of CPoleWeights.
- These syntaxes must only be used for rational surfaces.
+Modifies this B-Spline surface by assigning values to all or part
+of the column of poles of index VIndex, of this B-Spline surface.
+You can also change the weights of the modified poles. The weights
+are set to the corresponding values of CPoleWeights.
+These syntaxes must only be used for rational surfaces.
- Modifies this B-Spline surface by assigning values to all or part
- of the row of poles of index VIndex, of this B-Spline surface.
- You can also change the weights of the modified poles. The weights
- are set to the corresponding values of CPoleWeights.
- These syntaxes must only be used for rational surfaces.
+Modifies this B-Spline surface by assigning values to all or part
+of the row of poles of index UIndex, of this B-Spline surface.
+You can also change the weights of the modified poles. The weights
+are set to the corresponding values of CPoleWeights.
+These syntaxes must only be used for rational surfaces.
@@ -445,45 +445,45 @@
- Modifies this B-Spline surface by assigning the value Weight to the weight
- of the pole of index (UIndex, VIndex) in the poles tables of this B-Spline
- surface.
+Modifies this B-Spline surface by assigning the value Weight to the weight
+of the pole of index (UIndex, VIndex) in the poles tables of this B-Spline
+surface.
- This function must only be used for rational surfaces.
+This function must only be used for rational surfaces.
- Modifies this B-Spline surface by assigning values to all or part of the
- weights of the column of poles of index VIndex of this B-Spline surface.
+Modifies this B-Spline surface by assigning values to all or part of the
+weights of the column of poles of index VIndex of this B-Spline surface.
- The modified part of the column of weights is defined by the bounds
- of the array CPoleWeights.
+The modified part of the column of weights is defined by the bounds
+of the array CPoleWeights.
- This function must only be used for rational surfaces.
+This function must only be used for rational surfaces.
- Modifies this B-Spline surface by assigning values to all or part of the
- weights of the row of poles of index UIndex of this B-Spline surface.
+Modifies this B-Spline surface by assigning values to all or part of the
+weights of the row of poles of index UIndex of this B-Spline surface.
- The modified part of the row of weights is defined by the bounds of the
- array CPoleWeights.
+The modified part of the row of weights is defined by the bounds of the
+array CPoleWeights.
- This function must only be used for rational surfaces.
+This function must only be used for rational surfaces.
- Return the weight of the pole of index (UIndex,VIndex)
- in the poles table for this B-Spline surface.
+Return the weight of the pole of index (UIndex,VIndex)
+in the poles table for this B-Spline surface.
@@ -500,171 +500,171 @@
- Computes two tolerance values for this B-Spline surface, based on the
- given tolerance in 3D space Tolerance3D. The tolerances computed are:
- -- UTolerance in the u parametric direction and
- -- VTolerance in the v parametric direction.
+Computes two tolerance values for this B-Spline surface, based on the
+given tolerance in 3D space Tolerance3D. The tolerances computed are:
+-- UTolerance in the u parametric direction and
+-- VTolerance in the v parametric direction.
- If f(u,v) is the equation of this B-Spline surface, UTolerance and
- VTolerance guarantee that:
- |u1 - u0| < UTolerance
- |v1 - v0| < VTolerance
- ====> ||f(u1, v1) - f(u2, v2)|| < Tolerance3D
+If f(u,v) is the equation of this B-Spline surface, UTolerance and
+VTolerance guarantee that:
+|u1 - u0| < UTolerance
+|v1 - v0| < VTolerance
+====> ||f(u1, v1) - f(u2, v2)|| < Tolerance3D
- Moves the point of parameters (U, V) of this B-Spline surface to P.
- UIndex1, UIndex2, VIndex1 and VIndex2 are the indexes in the poles
- table of this B-Spline surface, of the first and last poles which
- can be moved in each parametric direction.
- The returned indexes UFirstIndex, ULastIndex, VFirstIndex and
- VLastIndex are the indexes of the first and last poles effectively
- modified in each parametric direction.
- In the event of incompatibility between UIndex1, UIndex2, VIndex1,
- VIndex2 and the values U and V:
- -- no change is made to this B-Spline surface, and
- -- UFirstIndex, ULastIndex, VFirstIndex and VLastIndex are set to
- null.
+Moves the point of parameters (U, V) of this B-Spline surface to P.
+UIndex1, UIndex2, VIndex1 and VIndex2 are the indexes in the poles
+table of this B-Spline surface, of the first and last poles which
+can be moved in each parametric direction.
+The returned indexes UFirstIndex, ULastIndex, VFirstIndex and
+VLastIndex are the indexes of the first and last poles effectively
+modified in each parametric direction.
+In the event of incompatibility between UIndex1, UIndex2, VIndex1,
+VIndex2 and the values U and V:
+-- no change is made to this B-Spline surface, and
+-- UFirstIndex, ULastIndex, VFirstIndex and VLastIndex are set to
+ null.
- Changes this B-Spline surface into a non-periodic one in the u parametric direction.
- If this B-Spline surface is already non-periodic in the given parametric direction,
- it is not modified.
- If this B-Spline surface is periodic in the given parametric direction, the boundaries
- of the surface are not given by the first and last rows (or columns) of poles (because
- the multiplicity of the first knot and of the last knot in the given parametric direction
- are not modified, nor are they equal to Degree+1, where Degree is the degree of this
- B-Spline surface in the given parametric direction). Only the function Segment ensures
- this property.
+Changes this B-Spline surface into a non-periodic one in the u parametric direction.
+If this B-Spline surface is already non-periodic in the given parametric direction,
+it is not modified.
+If this B-Spline surface is periodic in the given parametric direction, the boundaries
+of the surface are not given by the first and last rows (or columns) of poles (because
+the multiplicity of the first knot and of the last knot in the given parametric direction
+are not modified, nor are they equal to Degree+1, where Degree is the degree of this
+B-Spline surface in the given parametric direction). Only the function Segment ensures
+this property.
- Note: the poles and knots tables are modified.
+Note: the poles and knots tables are modified.
- Changes this B-Spline surface into a non-periodic one in the v parametric direction.
- If this B-Spline surface is already non-periodic in the given parametric direction,
- it is not modified.
- If this B-Spline surface is periodic in the given parametric direction, the boundaries
- of the surface are not given by the first and last rows (or columns) of poles (because
- the multiplicity of the first knot and of the last knot in the given parametric direction
- are not modified, nor are they equal to Degree+1, where Degree is the degree of this
- B-Spline surface in the given parametric direction). Only the function Segment ensures
- this property.
+Changes this B-Spline surface into a non-periodic one in the v parametric direction.
+If this B-Spline surface is already non-periodic in the given parametric direction,
+it is not modified.
+If this B-Spline surface is periodic in the given parametric direction, the boundaries
+of the surface are not given by the first and last rows (or columns) of poles (because
+the multiplicity of the first knot and of the last knot in the given parametric direction
+are not modified, nor are they equal to Degree+1, where Degree is the degree of this
+B-Spline surface in the given parametric direction). Only the function Segment ensures
+this property.
- Note: the poles and knots tables are modified.
+Note: the poles and knots tables are modified.
- Modifies this surface to be periodic in the u parametric direction.
- To become periodic in a given parametric direction a surface must
- be closed in that parametric direction, and the knot sequence relative
- to that direction must be periodic.
- To generate this periodic sequence of knots, the functions FirstUKnotIndex
- and LastUKnotIndex are used to compute I1 and I2. These are the indexes,
- in the knot array associated with the given parametric direction, of the
- knots that correspond to the first and last parameters of this B-Spline
- surface in the given parametric direction. Hence the period is:
+Modifies this surface to be periodic in the u parametric direction.
+To become periodic in a given parametric direction a surface must
+be closed in that parametric direction, and the knot sequence relative
+to that direction must be periodic.
+To generate this periodic sequence of knots, the functions FirstUKnotIndex
+and LastUKnotIndex are used to compute I1 and I2. These are the indexes,
+in the knot array associated with the given parametric direction, of the
+knots that correspond to the first and last parameters of this B-Spline
+surface in the given parametric direction. Hence the period is:
- Knots(I1) - Knots(I2)
+Knots(I1) - Knots(I2)
- As a result, the knots and poles tables are modified.
+As a result, the knots and poles tables are modified.
- Modifies this surface to be periodic in the v parametric direction.
- To become periodic in a given parametric direction a surface must
- be closed in that parametric direction, and the knot sequence relative
- to that direction must be periodic.
- To generate this periodic sequence of knots, the functions FirstUKnotIndex
- and LastUKnotIndex are used to compute I1 and I2. These are the indexes,
- in the knot array associated with the given parametric direction, of the
- knots that correspond to the first and last parameters of this B-Spline
- surface in the given parametric direction. Hence the period is:
+Modifies this surface to be periodic in the v parametric direction.
+To become periodic in a given parametric direction a surface must
+be closed in that parametric direction, and the knot sequence relative
+to that direction must be periodic.
+To generate this periodic sequence of knots, the functions FirstUKnotIndex
+and LastUKnotIndex are used to compute I1 and I2. These are the indexes,
+in the knot array associated with the given parametric direction, of the
+knots that correspond to the first and last parameters of this B-Spline
+surface in the given parametric direction. Hence the period is:
- Knots(I1) - Knots(I2)
+Knots(I1) - Knots(I2)
- As a result, the knots and poles tables are modified.
+As a result, the knots and poles tables are modified.
- Assigns the knot of index Index in the knots table
- in the u parametric direction to be the origin of
- this periodic B-Spline surface. As a consequence,
- the knots and poles tables are modified.
+Assigns the knot of index Index in the knots table
+in the u parametric direction to be the origin of
+this periodic B-Spline surface. As a consequence,
+the knots and poles tables are modified.
- Assigns the knot of index Index in the knots table
- in the v parametric direction to be the origin of
- this periodic B-Spline surface. As a consequence,
- the knots and poles tables are modified.
+Assigns the knot of index Index in the knots table
+in the v parametric direction to be the origin of
+this periodic B-Spline surface. As a consequence,
+the knots and poles tables are modified.
- Returns, for this B-Spline surface, the multiplicity of
- the knot of index UIndex in the u parametric direction.
+Returns, for this B-Spline surface, the multiplicity of
+the knot of index UIndex in the u parametric direction.
- Returns, for this B-Spline surface, the multiplicity of
- the knot of index VIndex in the v parametric direction.
+Returns, for this B-Spline surface, the multiplicity of
+the knot of index VIndex in the v parametric direction.
- Returns, for this B-Spline surface, the table of
- multiplicities in the u parametric direction
+Returns, for this B-Spline surface, the table of
+multiplicities in the u parametric direction
- Returns, for this B-Spline surface, the table of
- multiplicities in the v parametric direction
+Returns, for this B-Spline surface, the table of
+multiplicities in the v parametric direction
- Exchanges the u and v parametric directions on this B-Spline surface.
- As a consequence:
- -- the poles and weights tables are transposed,
- -- the knots and multiplicities tables are exchanged,
- -- degrees of continuity and rational, periodic and uniform
- characteristics are exchanged and
- -- the orientation of the surface is reversed.
+Exchanges the u and v parametric directions on this B-Spline surface.
+As a consequence:
+-- the poles and weights tables are transposed,
+-- the knots and multiplicities tables are exchanged,
+-- degrees of continuity and rational, periodic and uniform
+ characteristics are exchanged and
+-- the orientation of the surface is reversed.
@@ -676,66 +676,66 @@
- Replaces this B-Spline surface by approximating a set of points.
- This method uses keywords :
- - Points = 2Darray of points (or floats, in combination with X0, dX, Y0, dY)
- - DegMin (int), DegMax (int)
- - Continuity = 0,1 or 2 (for C0, C1, C2)
- - Tolerance (float)
- - X0, dX, Y0, dY (floats) with Points = 2Darray of floats
- - ParamType = 'Uniform','Centripetal' or 'ChordLength'
- - LengthWeight, CurvatureWeight, TorsionWeight (floats)
- (with this smoothing algorithm, continuity C1 requires DegMax >= 3 and C2, DegMax >=5)
+Replaces this B-Spline surface by approximating a set of points.
+This method uses keywords :
+- Points = 2Darray of points (or floats, in combination with X0, dX, Y0, dY)
+- DegMin (int), DegMax (int)
+- Continuity = 0,1 or 2 (for C0, C1, C2)
+- Tolerance (float)
+- X0, dX, Y0, dY (floats) with Points = 2Darray of floats
+- ParamType = 'Uniform','Centripetal' or 'ChordLength'
+- LengthWeight, CurvatureWeight, TorsionWeight (floats)
+(with this smoothing algorithm, continuity C1 requires DegMax >= 3 and C2, DegMax >=5)
- Possible combinations :
- - approximate(Points, DegMin, DegMax, Continuity, Tolerance)
- - approximate(Points, DegMin, DegMax, Continuity, Tolerance, X0, dX, Y0, dY)
- With explicit keywords :
- - approximate(Points, DegMin, DegMax, Continuity, Tolerance, ParamType)
- - approximate(Points, DegMax, Continuity, Tolerance, LengthWeight, CurvatureWeight, TorsionWeight)
+Possible combinations :
+- approximate(Points, DegMin, DegMax, Continuity, Tolerance)
+- approximate(Points, DegMin, DegMax, Continuity, Tolerance, X0, dX, Y0, dY)
+With explicit keywords :
+- approximate(Points, DegMin, DegMax, Continuity, Tolerance, ParamType)
+- approximate(Points, DegMax, Continuity, Tolerance, LengthWeight, CurvatureWeight, TorsionWeight)
- interpolate(points)
- interpolate(zpoints, X0, dX, Y0, dY)
+interpolate(points)
+interpolate(zpoints, X0, dX, Y0, dY)
- Replaces this B-Spline surface by interpolating a set of points.
- The resulting surface is of degree 3 and continuity C2.
- Arguments:
- a 2 dimensional array of vectors, that the surface passes through
- or
- a 2 dimensional array of floats with the z values,
- the x starting point X0 (float),
- the x increment dX (float),
- the y starting point Y0 and increment dY
+Replaces this B-Spline surface by interpolating a set of points.
+The resulting surface is of degree 3 and continuity C2.
+Arguments:
+a 2 dimensional array of vectors, that the surface passes through
+or
+a 2 dimensional array of floats with the z values,
+the x starting point X0 (float),
+the x increment dX (float),
+the y starting point Y0 and increment dY
- Builds a B-Spline by a lists of Poles, Mults and Knots
- arguments: poles (sequence of sequence of Base.Vector), umults, vmults, [uknots, vknots, uperiodic, vperiodic, udegree, vdegree, weights (sequence of sequence of float)]
+Builds a B-Spline by a lists of Poles, Mults and Knots
+arguments: poles (sequence of sequence of Base.Vector), umults, vmults, [uknots, vknots, uperiodic, vperiodic, udegree, vdegree, weights (sequence of sequence of float)]
- Builds a B-Spline from a list of control curves
+Builds a B-Spline from a list of control curves
- Scales the U and V knots lists to fit the specified bounds.
- The shape of the surface is not modified.
- bspline_surf.scaleKnotsToBounds(u0, u1, v0, v1)
- Default arguments are 0.0, 1.0, 0.0, 1.0
+Scales the U and V knots lists to fit the specified bounds.
+The shape of the surface is not modified.
+bspline_surf.scaleKnotsToBounds(u0, u1, v0, v1)
+Default arguments are 0.0, 1.0, 0.0, 1.0
diff --git a/src/Mod/Part/App/BezierCurvePy.xml b/src/Mod/Part/App/BezierCurvePy.xml
index 19fcb86a43..d496c8d946 100644
--- a/src/Mod/Part/App/BezierCurvePy.xml
+++ b/src/Mod/Part/App/BezierCurvePy.xml
@@ -14,20 +14,21 @@
Describes a rational or non-rational Bezier curve:
- -- a non-rational Bezier curve is defined by a table of poles (also called control points)
- -- a rational Bezier curve is defined by a table of poles with varying weights
+-- a non-rational Bezier curve is defined by a table of poles (also called control points)
+-- a rational Bezier curve is defined by a table of poles with varying weights
- Constructor takes no arguments.
+Constructor takes no arguments.
- Example usage:
- p1 = Base.Vector(-1, 0, 0)
- p2 = Base.Vector(0, 1, 0.2)
- p3 = Base.Vector(1, 0, 0.4)
- p4 = Base.Vector(0, -1, 1)
+Example usage:
+ p1 = Base.Vector(-1, 0, 0)
+ p2 = Base.Vector(0, 1, 0.2)
+ p3 = Base.Vector(1, 0, 0.4)
+ p4 = Base.Vector(0, -1, 1)
- bc = BezierCurve()
- bc.setPoles([p1, p2, p3, p4])
- curveShape = bc.toShape()
+ bc = BezierCurve()
+ bc.setPoles([p1, p2, p3, p4])
+ curveShape = bc.toShape()
+
@@ -74,13 +75,12 @@ Bezier curve curve. This value is 25.
Returns true if the distance between the start point and end point of
- this Bezier curve is less than or equal to gp::Resolution().
+this Bezier curve is less than or equal to gp::Resolution().
- increase(Int=Degree)
-Increases the degree of this Bezier curve to Degree.
+ Increases the degree of this Bezier curve to Degree.
As a result, the poles and weights tables are modified.
@@ -124,7 +124,7 @@ If this Bezier curve is rational, it can become non-rational.
Set the poles of the Bezier curve.
- Takes a list of 3D Base.Vector objects.
+Takes a list of 3D Base.Vector objects.
@@ -154,11 +154,11 @@ ensures that:
Interpolates a list of constraints.
- Each constraint is a list of a point and some optional derivatives
- An optional list of parameters can be passed. It must be of same size as constraint list.
- Otherwise, a simple uniform parametrization is used.
- Example :
- bezier.interpolate([[pt1, deriv11, deriv12], [pt2,], [pt3, deriv31]], [0, 0.4, 1.0])
+Each constraint is a list of a point and some optional derivatives
+An optional list of parameters can be passed. It must be of same size as constraint list.
+Otherwise, a simple uniform parametrization is used.
+Example :
+bezier.interpolate([[pt1, deriv11, deriv12], [pt2,], [pt3, deriv31]], [0, 0.4, 1.0])
diff --git a/src/Mod/Part/App/BezierSurfacePy.xml b/src/Mod/Part/App/BezierSurfacePy.xml
index 96a88d9d2d..798e9a3135 100644
--- a/src/Mod/Part/App/BezierSurfacePy.xml
+++ b/src/Mod/Part/App/BezierSurfacePy.xml
@@ -14,27 +14,27 @@
Describes a rational or non-rational Bezier surface
- -- A non-rational Bezier surface is defined by a table of poles (also known as control points).
- -- A rational Bezier surface is defined by a table of poles with varying associated weights.
+-- A non-rational Bezier surface is defined by a table of poles (also known as control points).
+-- A rational Bezier surface is defined by a table of poles with varying associated weights.
Returns the polynomial degree in u direction of this Bezier surface,
- which is equal to the number of poles minus 1.
+which is equal to the number of poles minus 1.
Returns the polynomial degree in v direction of this Bezier surface,
- which is equal to the number of poles minus 1.
+which is equal to the number of poles minus 1.
Returns the value of the maximum polynomial degree of any
- Bezier surface. This value is 25.
+Bezier surface. This value is 25.
@@ -58,17 +58,17 @@
Returns false if the equation of this Bezier surface is polynomial
- (e.g. non-rational) in the u or v parametric direction.
- In other words, returns false if for each row of poles, the associated
- weights are identical
+(e.g. non-rational) in the u or v parametric direction.
+In other words, returns false if for each row of poles, the associated
+weights are identical.
Returns false if the equation of this Bezier surface is polynomial
- (e.g. non-rational) in the u or v parametric direction.
- In other words, returns false if for each column of poles, the associated
- weights are identical
+(e.g. non-rational) in the u or v parametric direction.
+In other words, returns false if for each column of poles, the associated
+weights are identical.
@@ -84,101 +84,101 @@
Checks if this surface is closed in the u parametric direction.
- Returns true if, in the table of poles the first row and the last
- row are identical.
+Returns true if, in the table of poles the first row and the last
+row are identical.
Checks if this surface is closed in the v parametric direction.
- Returns true if, in the table of poles the first column and the
- last column are identical.
+Returns true if, in the table of poles the first column and the
+last column are identical.
- increase(Int=DegreeU,Int=DegreeV)
- Increases the degree of this Bezier surface in the two
- parametric directions.
+ increase(DegreeU: int, DegreeV: int)
+Increases the degree of this Bezier surface in the two
+parametric directions.
Inserts into the table of poles of this surface, after the column
- of poles of index.
- If this Bezier surface is non-rational, it can become rational if
- the weights associated with the new poles are different from each
- other, or collectively different from the existing weights in the
- table.
+of poles of index.
+If this Bezier surface is non-rational, it can become rational if
+the weights associated with the new poles are different from each
+other, or collectively different from the existing weights in the
+table.
Inserts into the table of poles of this surface, after the row
- of poles of index.
- If this Bezier surface is non-rational, it can become rational if
- the weights associated with the new poles are different from each
- other, or collectively different from the existing weights in the
- table.
+of poles of index.
+If this Bezier surface is non-rational, it can become rational if
+the weights associated with the new poles are different from each
+other, or collectively different from the existing weights in the
+table.
Inserts into the table of poles of this surface, before the column
- of poles of index.
- If this Bezier surface is non-rational, it can become rational if
- the weights associated with the new poles are different from each
- other, or collectively different from the existing weights in the
- table.
+of poles of index.
+If this Bezier surface is non-rational, it can become rational if
+the weights associated with the new poles are different from each
+other, or collectively different from the existing weights in the
+table.
Inserts into the table of poles of this surface, before the row
- of poles of index.
- If this Bezier surface is non-rational, it can become rational if
- the weights associated with the new poles are different from each
- other, or collectively different from the existing weights in the
- table.
+of poles of index.
+If this Bezier surface is non-rational, it can become rational if
+the weights associated with the new poles are different from each
+other, or collectively different from the existing weights in the
+table.
- removePoleRow(int=VIndex)
- Removes the column of poles of index VIndex from the table of
- poles of this Bezier surface.
- If this Bezier curve is rational, it can become non-rational.
+ removePoleRow(VIndex: int)
+Removes the column of poles of index VIndex from the table of
+poles of this Bezier surface.
+If this Bezier curve is rational, it can become non-rational.
- removePoleRow(int=UIndex)
- Removes the row of poles of index UIndex from the table of
- poles of this Bezier surface.
- If this Bezier curve is rational, it can become non-rational.
+ removePoleRow(UIndex: int)
+Removes the row of poles of index UIndex from the table of
+poles of this Bezier surface.
+If this Bezier curve is rational, it can become non-rational.
- segment(double=U1,double=U2,double=V1,double=V2)
- Modifies this Bezier surface by segmenting it between U1 and U2
- in the u parametric direction, and between V1 and V2 in the v
- parametric direction.
- U1, U2, V1, and V2 can be outside the bounds of this surface.
+ segment(U1: double, U2: double, V1: double, V2: double)
+Modifies this Bezier surface by segmenting it between U1 and U2
+in the u parametric direction, and between V1 and V2 in the v
+parametric direction.
+U1, U2, V1, and V2 can be outside the bounds of this surface.
- -- U1 and U2 isoparametric Bezier curves, segmented between
- V1 and V2, become the two bounds of the surface in the v
- parametric direction (0. and 1. u isoparametric curves).
- -- V1 and V2 isoparametric Bezier curves, segmented between
- U1 and U2, become the two bounds of the surface in the u
- parametric direction (0. and 1. v isoparametric curves).
+-- U1 and U2 isoparametric Bezier curves, segmented between
+ V1 and V2, become the two bounds of the surface in the v
+ parametric direction (0. and 1. u isoparametric curves).
+-- V1 and V2 isoparametric Bezier curves, segmented between
+ U1 and U2, become the two bounds of the surface in the u
+ parametric direction (0. and 1. v isoparametric curves).
- The poles and weights tables are modified, but the degree of
- this surface in the u and v parametric directions does not
- change.U1 can be greater than U2, and V1 can be greater than V2.
- In these cases, the corresponding parametric direction is inverted.
- The orientation of the surface is inverted if one (and only one)
- parametric direction is inverted.
+The poles and weights tables are modified, but the degree of
+this surface in the u and v parametric directions does not
+change.U1 can be greater than U2, and V1 can be greater than V2.
+In these cases, the corresponding parametric direction is inverted.
+The orientation of the surface is inverted if one (and only one)
+parametric direction is inverted.
@@ -198,7 +198,7 @@
- Get a pole of index (UIndex,VIndex) of the Bezier surface.
+ Get a pole of index (UIndex, VIndex) of the Bezier surface.
@@ -209,25 +209,25 @@
Set the weight of pole of the index (UIndex, VIndex)
- for the Bezier surface.
+for the Bezier surface.
Set the weights of the poles in the column of poles
- of index VIndex of the Bezier surface.
+of index VIndex of the Bezier surface.
Set the weights of the poles in the row of poles
- of index UIndex of the Bezier surface.
+of index UIndex of the Bezier surface.
- Get a weight of the pole of index (UIndex,VIndex)
- of the Bezier surface.
+ Get a weight of the pole of index (UIndex, VIndex)
+of the Bezier surface.
@@ -238,25 +238,25 @@
Computes two tolerance values for this Bezier surface, based on the
- given tolerance in 3D space Tolerance3D. The tolerances computed are:
- -- UTolerance in the u parametric direction and
- -- VTolerance in the v parametric direction.
+given tolerance in 3D space Tolerance3D. The tolerances computed are:
+-- UTolerance in the u parametric direction and
+-- VTolerance in the v parametric direction.
- If f(u,v) is the equation of this Bezier surface, UTolerance and VTolerance
- guarantee that:
- |u1 - u0| < UTolerance
- |v1 - v0| < VTolerance
- ====> ||f(u1, v1) - f(u2, v2)|| < Tolerance3D
+If f(u,v) is the equation of this Bezier surface, UTolerance and VTolerance
+guarantee that:
+|u1 - u0| < UTolerance
+|v1 - v0| < VTolerance
+====> ||f(u1, v1) - f(u2, v2)|| < Tolerance3D
Exchanges the u and v parametric directions on this Bezier surface.
- As a consequence:
- -- the poles and weights tables are transposed,
- -- degrees, rational characteristics and so on are exchanged between
- the two parametric directions, and
- -- the orientation of the surface is reversed.
+As a consequence:
+-- the poles and weights tables are transposed,
+-- degrees, rational characteristics and so on are exchanged between
+ the two parametric directions, and
+-- the orientation of the surface is reversed.
diff --git a/src/Mod/Part/App/ConePy.xml b/src/Mod/Part/App/ConePy.xml
index b5858ce5da..5e5151a08a 100644
--- a/src/Mod/Part/App/ConePy.xml
+++ b/src/Mod/Part/App/ConePy.xml
@@ -14,31 +14,34 @@
Describes a cone in 3D space
- To create a cone there are several ways:
- Part.Cone()
- Creates a default cone with radius 1
- Part.Cone(Cone)
- Creates a copy of the given cone
+To create a cone there are several ways:
- Part.Cone(Cone, Distance)
- Creates a cone parallel to given cone at a certain distance
+Part.Cone()
+ Creates a default cone with radius 1
- Part.Cone(Point1,Point2,Radius1,Radius2)
- Creates a cone defined by two points and two radii
- The axis of the cone is the line passing through
- Point1 and Poin2.
- Radius1 is the radius of the section passing through
- Point1 and Radius2 the radius of the section passing
- through Point2.
+Part.Cone(Cone)
+ Creates a copy of the given cone
- Part.Cone(Point1,Point2,Point3,Point4)
- Creates a cone passing through three points Point1,
- Point2 and Point3.
- Its axis is defined by Point1 and Point2 and the radius of
- its base is the distance between Point3 and its axis.
- The distance between Point and the axis is the radius of
- the section passing through Point4.
+Part.Cone(Cone, Distance)
+ Creates a cone parallel to given cone at a certain distance
+
+Part.Cone(Point1,Point2,Radius1,Radius2)
+ Creates a cone defined by two points and two radii
+ The axis of the cone is the line passing through
+ Point1 and Poin2.
+ Radius1 is the radius of the section passing through
+ Point1 and Radius2 the radius of the section passing
+ through Point2.
+
+Part.Cone(Point1,Point2,Point3,Point4)
+ Creates a cone passing through three points Point1,
+ Point2 and Point3.
+ Its axis is defined by Point1 and Point2 and the radius of
+ its base is the distance between Point3 and its axis.
+ The distance between Point and the axis is the radius of
+ the section passing through Point4.
+
diff --git a/src/Mod/Part/App/ConicPy.xml b/src/Mod/Part/App/ConicPy.xml
index bf14ec9796..675c5310ff 100644
--- a/src/Mod/Part/App/ConicPy.xml
+++ b/src/Mod/Part/App/ConicPy.xml
@@ -29,12 +29,11 @@
-
- returns the eccentricity value of the conic e.
- e = 0 for a circle
- 0 < e < 1 for an ellipse (e = 0 if MajorRadius = MinorRadius)
- e > 1 for a hyperbola
- e = 1 for a parabola
+ Returns the eccentricity value of the conic e.
+e = 0 for a circle
+0 < e < 1 for an ellipse (e = 0 if MajorRadius = MinorRadius)
+e > 1 for a hyperbola
+e = 1 for a parabola
diff --git a/src/Mod/Part/App/CylinderPy.xml b/src/Mod/Part/App/CylinderPy.xml
index e7e64d31a3..499e22f5e1 100644
--- a/src/Mod/Part/App/CylinderPy.xml
+++ b/src/Mod/Part/App/CylinderPy.xml
@@ -14,21 +14,23 @@
Describes a cylinder in 3D space
- To create a cylinder there are several ways:
- Part.Cylinder()
- Creates a default cylinder with center (0,0,0) and radius 1
- Part.Cylinder(Cylinder)
- Creates a copy of the given cylinder
+To create a cylinder there are several ways:
- Part.Cylinder(Cylinder, Distance)
- Creates a cylinder parallel to given cylinder at a certain distance
+Part.Cylinder()
+ Creates a default cylinder with center (0,0,0) and radius 1
- Part.Cylinder(Point1,Point2,Point2)
- Creates a cylinder defined by three non-linear points
+Part.Cylinder(Cylinder)
+ Creates a copy of the given cylinder
- Part.Cylinder(Circle)
- Creates a cylinder by a circular base
+Part.Cylinder(Cylinder, Distance)
+ Creates a cylinder parallel to given cylinder at a certain distance
+
+Part.Cylinder(Point1, Point2, Point2)
+ Creates a cylinder defined by three non-linear points
+
+Part.Cylinder(Circle)
+ Creates a cylinder by a circular base
diff --git a/src/Mod/Part/App/EllipsePy.xml b/src/Mod/Part/App/EllipsePy.xml
index 91da1ca4b2..9dea884aa1 100644
--- a/src/Mod/Part/App/EllipsePy.xml
+++ b/src/Mod/Part/App/EllipsePy.xml
@@ -14,25 +14,28 @@
Describes an ellipse in 3D space
- To create an ellipse there are several ways:
- Part.Ellipse()
- Creates an ellipse with major radius 2 and minor radius 1 with the
- center in (0,0,0)
- Part.Ellipse(Ellipse)
- Create a copy of the given ellipse
+To create an ellipse there are several ways:
- Part.Ellipse(S1,S2,Center)
- Creates an ellipse centered on the point Center, where
- the plane of the ellipse is defined by Center, S1 and S2,
- its major axis is defined by Center and S1,
- its major radius is the distance between Center and S1, and
- its minor radius is the distance between S2 and the major axis.
+Part.Ellipse()
+ Creates an ellipse with major radius 2 and minor radius 1 with the
+ center in (0,0,0)
- Part.Ellipse(Center,MajorRadius,MinorRadius)
- Creates an ellipse with major and minor radii MajorRadius and
- MinorRadius, and located in the plane defined by Center and
- the normal (0,0,1)
+Part.Ellipse(Ellipse)
+ Create a copy of the given ellipse
+
+Part.Ellipse(S1,S2,Center)
+ Creates an ellipse centered on the point Center, where
+ the plane of the ellipse is defined by Center, S1 and S2,
+ its major axis is defined by Center and S1,
+ its major radius is the distance between Center and S1, and
+ its minor radius is the distance between S2 and the major axis.
+
+Part.Ellipse(Center,MajorRadius,MinorRadius)
+ Creates an ellipse with major and minor radii MajorRadius and
+ MinorRadius, and located in the plane defined by Center and
+ the normal (0,0,1)
+
@@ -54,17 +57,13 @@
- The first focus is on the positive side of the major axis of the ellipse;
-the second focus is on the negative side.
+ The first focus is on the positive side of the major axis of the ellipse.
-
- The first focus is on the positive side of the major axis of the ellipse;
-the second focus is on the negative side.
-
+ The second focus is on the negative side of the major axis of the ellipse.
diff --git a/src/Mod/Part/App/GeometryCurvePy.xml b/src/Mod/Part/App/GeometryCurvePy.xml
index f0f80580f9..63a5ca126e 100644
--- a/src/Mod/Part/App/GeometryCurvePy.xml
+++ b/src/Mod/Part/App/GeometryCurvePy.xml
@@ -23,7 +23,9 @@
Discretizes the curve and returns a list of points.
+
The function accepts keywords as argument:
+
discretize(Number=n) => gives a list of 'n' equidistant points
discretize(QuasiNumber=n) => gives a list of 'n' quasi equidistant points (is faster than the method above)
discretize(Distance=d) => gives a list of equidistant points with distance 'd'
@@ -83,13 +85,13 @@ Part.show(s)
Computes the length of a curve
-length([uMin,uMax,Tol]) -> Float
+length([uMin, uMax, Tol]) -> float
Returns the parameter on the curve of a point at the given distance from a starting parameter.
-parameterAtDistance([abscissa, startingParameter]) -> Float the
+parameterAtDistance([abscissa, startingParameter]) -> float
@@ -119,8 +121,7 @@ parameterAtDistance([abscissa, startingParameter]) -> Float the
- Returns the parameter on the curve
-of the nearest orthogonal projection of the point.
+ Returns the parameter on the curve of the nearest orthogonal projection of the point.
@@ -155,7 +156,7 @@ projectPoint(Vector,"Point") -> list of points
Returns all intersection points and curve segments between the curve and the curve/surface.
- arguments: curve/surface (for the intersection), precision (float)
+arguments: curve/surface (for the intersection), precision (float)
@@ -170,26 +171,26 @@ projectPoint(Vector,"Point") -> list of points
- Converts a curve of any type (only part from First to Last)
- toBSpline([Float=First, Float=Last]) -> B-Spline curve
+ Converts a curve of any type (only part from First to Last) to BSpline curve.
+toBSpline((first: float, last: float)) -> BSplineCurve
- Converts a curve of any type (only part from First to Last)
- toNurbs([Float=First, Float=Last]) -> NURBS curve
+ Converts a curve of any type (only part from First to Last) to NURBS curve.
+toNurbs((first: float, last: float)) -> NurbsCurve
- Returns a trimmed curve defined in the given parameter range
- trim([Float=First, Float=Last]) -> trimmed curve
+ Returns a trimmed curve defined in the given parameter range.
+trim((first: float, last: float)) -> TrimmedCurve
- Approximates a curve of any type to a B-Spline curve
- approximateBSpline(Tolerance, MaxSegments, MaxDegree, [Order='C2']) -> B-Spline curve
+ Approximates a curve of any type to a B-Spline curve.
+approximateBSpline(Tolerance, MaxSegments, MaxDegree, [Order='C2']) -> BSplineCurve
@@ -199,8 +200,7 @@ projectPoint(Vector,"Point") -> list of points
- Returns the parameter on the reversed curve for
-the point of parameter U on this curve.
+ Returns the parameter on the reversed curve for the point of parameter U on this curve.
@@ -210,8 +210,7 @@ the point of parameter U on this curve.
- Returns the period of this curve
-or raises an exception if it is not periodic.
+ Returns the period of this curve or raises an exception if it is not periodic.
diff --git a/src/Mod/Part/App/GeometryPy.xml b/src/Mod/Part/App/GeometryPy.xml
index d259660688..e56c95fe88 100644
--- a/src/Mod/Part/App/GeometryPy.xml
+++ b/src/Mod/Part/App/GeometryPy.xml
@@ -55,10 +55,9 @@ It describes the common behavior of these objects when:
-
- isSame(geom, tol, angulartol) -> boolean
+ isSame(geom, tol, angulartol) -> boolean
- Compare this geometry to another one
+Compare this geometry to another one
diff --git a/src/Mod/Part/App/GeometrySurfacePy.xml b/src/Mod/Part/App/GeometrySurfacePy.xml
index 30030220f8..45c8a4022d 100644
--- a/src/Mod/Part/App/GeometrySurfacePy.xml
+++ b/src/Mod/Part/App/GeometrySurfacePy.xml
@@ -161,15 +161,15 @@ of the nearest orthogonal projection of the point.
Returns a B-Spline representation of this surface.
- The optional arguments are:
- * tolerance (default=1e-7)
- * continuity in u (as string e.g. C0, G0, G1, C1, G2, C3, CN) (default='C1')
- * continuity in v (as string e.g. C0, G0, G1, C1, G2, C3, CN) (default='C1')
- * maximum degree in u (default=25)
- * maximum degree in v (default=25)
- * maximum number of segments (default=1000)
- * precision code (default=0)
- Will raise an exception if surface is infinite in U or V (like planes, cones or cylinders)
+The optional arguments are:
+* tolerance (default=1e-7)
+* continuity in u (as string e.g. C0, G0, G1, C1, G2, C3, CN) (default='C1')
+* continuity in v (as string e.g. C0, G0, G1, C1, G2, C3, CN) (default='C1')
+* maximum degree in u (default=25)
+* maximum degree in v (default=25)
+* maximum number of segments (default=1000)
+* precision code (default=0)
+Will raise an exception if surface is infinite in U or V (like planes, cones or cylinders)
diff --git a/src/Mod/Part/App/HyperbolaPy.xml b/src/Mod/Part/App/HyperbolaPy.xml
index 1bae540d6b..abc76b9a4c 100644
--- a/src/Mod/Part/App/HyperbolaPy.xml
+++ b/src/Mod/Part/App/HyperbolaPy.xml
@@ -14,25 +14,28 @@
Describes an hyperbola in 3D space
- To create a hyperbola there are several ways:
- Part.Hyperbola()
- Creates an hyperbola with major radius 2 and minor radius 1 with the
- center in (0,0,0)
- Part.Hyperbola(Hyperbola)
- Create a copy of the given hyperbola
+To create a hyperbola there are several ways:
- Part.Hyperbola(S1,S2,Center)
- Creates an hyperbola centered on the point Center, where
- the plane of the hyperbola is defined by Center, S1 and S2,
- its major axis is defined by Center and S1,
- its major radius is the distance between Center and S1, and
- its minor radius is the distance between S2 and the major axis.
+Part.Hyperbola()
+ Creates an hyperbola with major radius 2 and minor radius 1 with the
+ center in (0,0,0)
- Part.Hyperbola(Center,MajorRadius,MinorRadius)
- Creates an hyperbola with major and minor radii MajorRadius and
- MinorRadius, and located in the plane defined by Center and
- the normal (0,0,1)
+Part.Hyperbola(Hyperbola)
+ Create a copy of the given hyperbola
+
+Part.Hyperbola(S1,S2,Center)
+ Creates an hyperbola centered on the point Center, where
+ the plane of the hyperbola is defined by Center, S1 and S2,
+ its major axis is defined by Center and S1,
+ its major radius is the distance between Center and S1, and
+ its minor radius is the distance between S2 and the major axis.
+
+Part.Hyperbola(Center,MajorRadius,MinorRadius)
+ Creates an hyperbola with major and minor radii MajorRadius and
+ MinorRadius, and located in the plane defined by Center and
+ the normal (0,0,1)
+
@@ -54,17 +57,13 @@
- The first focus is on the positive side of the major axis of the hyperbola;
-the second focus is on the negative side.
+ The first focus is on the positive side of the major axis of the hyperbola.
-
- The first focus is on the positive side of the major axis of the hyperbola;
-the second focus is on the negative side.
-
+ The second focus is on the negative side of the major axis of the hyperbola.
diff --git a/src/Mod/Part/App/ParabolaPy.xml b/src/Mod/Part/App/ParabolaPy.xml
index 01cf61ed0d..e59f6f6160 100644
--- a/src/Mod/Part/App/ParabolaPy.xml
+++ b/src/Mod/Part/App/ParabolaPy.xml
@@ -17,8 +17,9 @@
- compute(p1,p2,p3)
- The three points must lie on a plane parallel to xy plane and must not be collinear
+ compute(p1,p2,p3) -> None
+
+The three points must lie on a plane parallel to xy plane and must not be collinear
diff --git a/src/Mod/Part/App/RectangularTrimmedSurfacePy.xml b/src/Mod/Part/App/RectangularTrimmedSurfacePy.xml
index f6672af013..060cd78cf9 100644
--- a/src/Mod/Part/App/RectangularTrimmedSurfacePy.xml
+++ b/src/Mod/Part/App/RectangularTrimmedSurfacePy.xml
@@ -27,7 +27,11 @@ necessarily have the same orientation as the basis surface.
- Modifies this patch by changing the trim values applied to the original surface
+
+setTrim(self, params: (u1, u2, v1, v2)) -> None
+
+Modifies this patch by changing the trim values applied to the original surface
+
diff --git a/src/Mod/Part/App/TopoShapeEdgePy.xml b/src/Mod/Part/App/TopoShapeEdgePy.xml
index 06d28d4ef5..3d46d83d76 100644
--- a/src/Mod/Part/App/TopoShapeEdgePy.xml
+++ b/src/Mod/Part/App/TopoShapeEdgePy.xml
@@ -340,7 +340,6 @@ p=e.discretize(Number=50,First=3.14)
s=Part.Compound([Part.Vertex(i) for i in p])
Part.show(s)
-
p=e.discretize(Angular=0.09,Curvature=0.01,Last=3.14,Minimum=100)
s=Part.Compound([Part.Vertex(i) for i in p])
Part.show(s)
@@ -515,22 +514,22 @@ coordinate system.
Returns Ix, Iy, Iz, the static moments of inertia of the
- current system; i.e. the moments of inertia about the
- three axes of the Cartesian coordinate system.
+current system; i.e. the moments of inertia about the
+three axes of the Cartesian coordinate system.
Computes the principal properties of inertia of the current system.
- There is always a set of axes for which the products
- of inertia of a geometric system are equal to 0; i.e. the
- matrix of inertia of the system is diagonal. These axes
- are the principal axes of inertia. Their origin is
- coincident with the center of mass of the system. The
- associated moments are called the principal moments of inertia.
- This function computes the eigen values and the
- eigen vectors of the matrix of inertia of the system.
+There is always a set of axes for which the products
+of inertia of a geometric system are equal to 0; i.e. the
+matrix of inertia of the system is diagonal. These axes
+are the principal axes of inertia. Their origin is
+coincident with the center of mass of the system. The
+associated moments are called the principal moments of inertia.
+This function computes the eigen values and the
+eigen vectors of the matrix of inertia of the system.
@@ -540,7 +539,5 @@ coordinate system.
-
-
diff --git a/src/Mod/Part/App/TopoShapeFacePy.xml b/src/Mod/Part/App/TopoShapeFacePy.xml
index 1ce5a796d7..146ddec275 100644
--- a/src/Mod/Part/App/TopoShapeFacePy.xml
+++ b/src/Mod/Part/App/TopoShapeFacePy.xml
@@ -123,7 +123,7 @@ validate()
curveOnSurface(Edge) -> (curve, min, max) or None
--
If this curve exists then a tuple of curve and parameter range is returned.
-Returns None if this curve does not exist.
+Returns None if this curve does not exist.
@@ -204,22 +204,22 @@ coordinate system.
Returns Ix, Iy, Iz, the static moments of inertia of the
- current system; i.e. the moments of inertia about the
- three axes of the Cartesian coordinate system.
+current system; i.e. the moments of inertia about the
+three axes of the Cartesian coordinate system.
Computes the principal properties of inertia of the current system.
- There is always a set of axes for which the products
- of inertia of a geometric system are equal to 0; i.e. the
- matrix of inertia of the system is diagonal. These axes
- are the principal axes of inertia. Their origin is
- coincident with the center of mass of the system. The
- associated moments are called the principal moments of inertia.
- This function computes the eigen values and the
- eigen vectors of the matrix of inertia of the system.
+There is always a set of axes for which the products
+of inertia of a geometric system are equal to 0; i.e. the
+matrix of inertia of the system is diagonal. These axes
+are the principal axes of inertia. Their origin is
+coincident with the center of mass of the system. The
+associated moments are called the principal moments of inertia.
+This function computes the eigen values and the
+eigen vectors of the matrix of inertia of the system.
diff --git a/src/Mod/Part/App/TopoShapePy.xml b/src/Mod/Part/App/TopoShapePy.xml
index 88a4a16922..ef104074b5 100644
--- a/src/Mod/Part/App/TopoShapePy.xml
+++ b/src/Mod/Part/App/TopoShapePy.xml
@@ -109,7 +109,7 @@ importBinary(filename)
Load the shape from a string that keeps the content in BREP format.
importBrepFromString(string, [displayProgressBar=True])
--
-importBrepFromString(str,False) to not display a progress bar.
+importBrepFromString(str, False) to not display a progress bar.
@@ -311,11 +311,11 @@ sewShape()
Return a list of sub-shapes that are direct children of this shape.
childShapes([cumOri=True, cumLoc=True]) -> list
--
- * If cumOri is true, the function composes all
- sub-shapes with the orientation of this shape.
- * If cumLoc is true, the function multiplies all
- sub-shapes by the location of this shape, i.e. it applies to
- each sub-shape the transformation that is associated with this shape.
+* If cumOri is true, the function composes all
+ sub-shapes with the orientation of this shape.
+* If cumLoc is true, the function multiplies all
+ sub-shapes by the location of this shape, i.e. it applies to
+ each sub-shape the transformation that is associated with this shape.
@@ -368,7 +368,7 @@ underlying geometry then use the methods translate or rotate.
Apply transformation on a shape without changing the underlying geometry.
-transformShape(Matrix,[boolean copy=False, checkScale=False]) -> None
+transformShape(Matrix, [boolean copy=False, checkScale=False]) -> None
--
If checkScale is True, it will use transformGeometry if non-uniform
scaling is detected.
@@ -397,49 +397,49 @@ translated(vector) -> shape
- Apply the rotation (base,dir,degree) to the current location of this shape
-rotate(base,dir,degree)
+ Apply the rotation (base, dir, degree) to the current location of this shape
+rotate(base, dir, degree)
--
-Shp.rotate(App.Vector(0,0,0),App.Vector(0,0,1),180) - rotate the shape around the Z Axis 180 degrees.
+Shp.rotate(App.Vector(0,0,0), App.Vector(0,0,1), 180) - rotate the shape around the Z Axis 180 degrees.
Create a new shape with rotation.
-rotated(base,dir,degree) -> shape
+rotated(base, dir, degree) -> shape
Apply scaling with point and factor to this shape.
-scale(factor,[base=App.Vector(0,0,0)])
+scale(factor, [base=App.Vector(0,0,0)])
Create a new shape with scale.
-scaled(factor,[base=App.Vector(0,0,0)]) -> shape
+scaled(factor, [base=App.Vector(0,0,0)]) -> shape
Make fillet.
-makeFillet(radius,edgeList) -> Shape
+makeFillet(radius, edgeList) -> Shape
or
-makeFillet(radius1,radius2,edgeList) -> Shape
+makeFillet(radius1, radius2, edgeList) -> Shape
Make chamfer.
-makeChamfer(radius,edgeList) -> Shape
+makeChamfer(radius, edgeList) -> Shape
or
-makeChamfer(radius1,radius2,edgeList) -> Shape
+makeChamfer(radius1, radius2, edgeList) -> Shape
@@ -454,14 +454,12 @@ the hollowed solid, their thickness defined at the time of construction.
- makes an offset shape (3d offsetting).
-makeOffsetShape(offset, tolerance, [inter = False, self_inter = False,
-offsetMode = 0, join = 0, fill = False]) -> Shape
+ Makes an offset shape (3d offsetting).
+makeOffsetShape(offset, tolerance, [inter=False, self_inter=False, offsetMode=0, join=0, fill=False]) -> Shape
--
The function supports keyword arguments.
-* offset: distance to expand the shape by. Negative value will shrink the
-shape.
+* offset: distance to expand the shape by. Negative value will shrink the shape.
* tolerance: precision of approximation.
@@ -481,18 +479,15 @@ Returns: result of offsetting.
- makes an offset shape (2d offsetting).
-makeOffset2D(offset, [join = 0, fill = False, openResult = false, intersection =
-false]) -> Shape
+ Makes an offset shape (2d offsetting).
+makeOffset2D(offset, [join=0, fill=False, openResult=False, intersection=False]) -> Shape
--
-The function supports keyword
-arguments. Input shape (self) can be edge, wire, face, or a compound of those.
+The function supports keyword arguments.
+Input shape (self) can be edge, wire, face, or a compound of those.
-* offset: distance to expand the shape by. Negative value will shrink the
-shape.
+* offset: distance to expand the shape by. Negative value will shrink the shape.
-* join: method of offsetting non-tangent joints. 0 = arcs, 1 = tangent, 2 =
-intersection
+* join: method of offsetting non-tangent joints. 0 = arcs, 1 = tangent, 2 = intersection
* fill: if true, the output is a face filling the space covered by offset. If
false, the output is a wire.
@@ -518,7 +513,7 @@ structure follows that of source shape.
- make wire(s) using the edges of this shape
+ Make wire(s) using the edges of this shape
makeWires([op=None])
--
The function will sort any edges inside the current shape, and connect them
@@ -570,7 +565,7 @@ isClosed() -> bool
--
If the shape is a shell it returns True if it has no free boundaries (edges).
If the shape is a wire it returns True if it has no free ends (vertices).
-(Internal and External sub-shepes are ignored in these checks)
+(Internal and External sub-shapes are ignored in these checks)
If the shape is an edge it returns True if its vertices are the same.
@@ -586,7 +581,7 @@ isPartner(shape) -> bool
Checks if both shapes share the same geometry
- and placement. Orientation may differ.
+and placement. Orientation may differ.
isSame(shape) -> bool
@@ -594,7 +589,7 @@ isSame(shape) -> bool
Checks if both shapes are equal.
- This means geometry, placement and orientation are equal.
+This means geometry, placement and orientation are equal.
isEqual(shape) -> bool
@@ -628,7 +623,7 @@ isInfinite() -> bool
- return a plane if the shape is planar
+ Returns a plane if the shape is planar
findPlane(tol=None) -> Shape
@@ -808,7 +803,7 @@ infos contains additional info on the solutions. It is a list of tuples:
params1, params2 are parameters of internal space of the elements. For
vertices, params is None. For edges, params is one float, u. For faces,
- params is a tuple (u,v).
+ params is a tuple (u,v).
@@ -832,39 +827,39 @@ countElement(type) -> int
- mapSubElement(shape|[shape...], op='') - maps the sub element of other shape
+mapSubElement(shape|[shape...], op='') - maps the sub element of other shape
- shape: other shape or sequence of shapes to map the sub-elements
- op: optional string prefix to append before the mapped sub element names
+shape: other shape or sequence of shapes to map the sub-elements
+op: optional string prefix to append before the mapped sub element names
- mapShapes(generated, modified, op='')
+mapShapes(generated, modified, op='')
- generate element names with user defined mapping
+generate element names with user defined mapping
- generated: a list of tuple(src, dst) that indicating src shape or shapes
- generates dst shape or shapes. Note that the dst shape or shapes
- must be sub-shapes of this shape.
- modified: a list of tuple(src, dst) that indicating src shape or shapes
- modifies into dst shape or shapes. Note that the dst shape or
- shapes must be sub-shapes of this shape.
- op: optional string prefix to append before the mapped sub element names
+generated: a list of tuple(src, dst) that indicating src shape or shapes
+generates dst shape or shapes. Note that the dst shape or shapes
+must be sub-shapes of this shape.
+modified: a list of tuple(src, dst) that indicating src shape or shapes
+modifies into dst shape or shapes. Note that the dst shape or
+shapes must be sub-shapes of this shape.
+op: optional string prefix to append before the mapped sub element names
- getElementHistory(name) - returns the element mapped name history
+getElementHistory(name) - returns the element mapped name history
- name: mapped element name belonging to this shape
+name: mapped element name belonging to this shape
- Returns tuple(sourceShapeTag, sourceName, [intermediateNames...]),
- or None if no history.
+Returns tuple(sourceShapeTag, sourceName, [intermediateNames...]),
+or None if no history.
@@ -962,44 +957,44 @@ optimalBoundingBox([useTriangulation = True, useShapeTolerance = False]) -> boun
- findSubShape(shape) -> (type_name, index)
+findSubShape(shape) -> (type_name, index)
- Find sub shape and return the shape type name and index. If not found,
- then return (None, 0)
+Find sub shape and return the shape type name and index. If not found,
+then return (None, 0)
- findSubShapesWithSharedVertex(shape, needName=False, checkGeometry=True, tol=1e-7, atol=1e-12) -> Shape
+findSubShapesWithSharedVertex(shape, needName=False, checkGeometry=True, tol=1e-7, atol=1e-12) -> Shape
- shape: input elementary shape, currently only support Face, Edge, or Vertex
+shape: input elementary shape, currently only support Face, Edge, or Vertex
- needName: if True, return a list of tuple(name, shape), or else return a list
- of shapes.
+needName: if True, return a list of tuple(name, shape), or else return a list
+of shapes.
- checkGeometry: whether to compare geometry
+checkGeometry: whether to compare geometry
- tol: distance tolerance
+tol: distance tolerance
- atol: angular tolerance
+atol: angular tolerance
- Search sub shape by checking vertex coordinates and comparing the underlying
- geometries, This can find shapes that are copied. It currently only works with
- elementary shapes, Face, Edge, Vertex.
+Search sub shape by checking vertex coordinates and comparing the underlying
+geometries, This can find shapes that are copied. It currently only works with
+elementary shapes, Face, Edge, Vertex.
- getChildShapes(shapetype, avoidtype='') -> list(Shape)
+getChildShapes(shapetype, avoidtype='') -> list(Shape)
- Return a list of child sub-shapes of given type.
+Return a list of child sub-shapes of given type.
- shapetype: the type of requesting sub shapes
- avoidtype: optional shape type to skip when exploring
+shapetype: the type of requesting sub shapes
+avoidtype: optional shape type to skip when exploring
diff --git a/src/Mod/Part/App/TopoShapeShellPy.xml b/src/Mod/Part/App/TopoShapeShellPy.xml
index e2a9392281..a0b98fb134 100644
--- a/src/Mod/Part/App/TopoShapeShellPy.xml
+++ b/src/Mod/Part/App/TopoShapeShellPy.xml
@@ -81,22 +81,22 @@ coordinate system.
Returns Ix, Iy, Iz, the static moments of inertia of the
- current system; i.e. the moments of inertia about the
- three axes of the Cartesian coordinate system.
+current system; i.e. the moments of inertia about the
+three axes of the Cartesian coordinate system.
Computes the principal properties of inertia of the current system.
- There is always a set of axes for which the products
- of inertia of a geometric system are equal to 0; i.e. the
- matrix of inertia of the system is diagonal. These axes
- are the principal axes of inertia. Their origin is
- coincident with the center of mass of the system. The
- associated moments are called the principal moments of inertia.
- This function computes the eigen values and the
- eigen vectors of the matrix of inertia of the system.
+There is always a set of axes for which the products
+of inertia of a geometric system are equal to 0; i.e. the
+matrix of inertia of the system is diagonal. These axes
+are the principal axes of inertia. Their origin is
+coincident with the center of mass of the system. The
+associated moments are called the principal moments of inertia.
+This function computes the eigen values and the
+eigen vectors of the matrix of inertia of the system.
diff --git a/src/Mod/Part/App/TopoShapeSolidPy.xml b/src/Mod/Part/App/TopoShapeSolidPy.xml
index 344f48e75e..1f50ab51cf 100644
--- a/src/Mod/Part/App/TopoShapeSolidPy.xml
+++ b/src/Mod/Part/App/TopoShapeSolidPy.xml
@@ -18,7 +18,7 @@
Returns the mass of the current system.
-
+
@@ -53,22 +53,22 @@ coordinate system.
Returns Ix, Iy, Iz, the static moments of inertia of the
- current system; i.e. the moments of inertia about the
- three axes of the Cartesian coordinate system.
+current system; i.e. the moments of inertia about the
+three axes of the Cartesian coordinate system.
Computes the principal properties of inertia of the current system.
- There is always a set of axes for which the products
- of inertia of a geometric system are equal to 0; i.e. the
- matrix of inertia of the system is diagonal. These axes
- are the principal axes of inertia. Their origin is
- coincident with the center of mass of the system. The
- associated moments are called the principal moments of inertia.
- This function computes the eigen values and the
- eigen vectors of the matrix of inertia of the system.
+There is always a set of axes for which the products
+of inertia of a geometric system are equal to 0; i.e. the
+matrix of inertia of the system is diagonal. These axes
+are the principal axes of inertia. Their origin is
+coincident with the center of mass of the system. The
+associated moments are called the principal moments of inertia.
+This function computes the eigen values and the
+eigen vectors of the matrix of inertia of the system.
diff --git a/src/Mod/Part/App/TopoShapeSolidPyImp.cpp b/src/Mod/Part/App/TopoShapeSolidPyImp.cpp
index d7c1d17367..af0c3a87cb 100644
--- a/src/Mod/Part/App/TopoShapeSolidPyImp.cpp
+++ b/src/Mod/Part/App/TopoShapeSolidPyImp.cpp
@@ -100,7 +100,7 @@ int TopoShapeSolidPy::PyInit(PyObject* args, PyObject* /*kwd*/)
return 0;
}
-Py::Object TopoShapeSolidPy::getMass() const
+Py::Float TopoShapeSolidPy::getMass() const
{
GProp_GProps props;
BRepGProp::VolumeProperties(getTopoShapePtr()->getShape(), props);
diff --git a/src/Mod/Part/App/TopoShapeWirePy.xml b/src/Mod/Part/App/TopoShapeWirePy.xml
index 04959c1d03..f3de0a58c2 100644
--- a/src/Mod/Part/App/TopoShapeWirePy.xml
+++ b/src/Mod/Part/App/TopoShapeWirePy.xml
@@ -151,22 +151,22 @@ coordinate system.
Returns Ix, Iy, Iz, the static moments of inertia of the
- current system; i.e. the moments of inertia about the
- three axes of the Cartesian coordinate system.
+current system; i.e. the moments of inertia about the
+three axes of the Cartesian coordinate system.
Computes the principal properties of inertia of the current system.
- There is always a set of axes for which the products
- of inertia of a geometric system are equal to 0; i.e. the
- matrix of inertia of the system is diagonal. These axes
- are the principal axes of inertia. Their origin is
- coincident with the center of mass of the system. The
- associated moments are called the principal moments of inertia.
- This function computes the eigen values and the
- eigen vectors of the matrix of inertia of the system.
+There is always a set of axes for which the products
+of inertia of a geometric system are equal to 0; i.e. the
+matrix of inertia of the system is diagonal. These axes
+are the principal axes of inertia. Their origin is
+coincident with the center of mass of the system. The
+associated moments are called the principal moments of inertia.
+This function computes the eigen values and the
+eigen vectors of the matrix of inertia of the system.