From 1787144deead9cdb75a4cd10a2ddc9f488e93a1d Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 13 Jan 2019 15:45:32 +0100 Subject: [PATCH] set non-modifying functions of Python wrappers as const --- src/Mod/Part/App/BSplineCurvePy.xml | 30 ++++----- src/Mod/Part/App/BSplineSurfacePy.xml | 44 ++++++------- src/Mod/Part/App/BezierCurvePy.xml | 14 ++-- src/Mod/Part/App/BezierSurfacePy.xml | 26 ++++---- src/Mod/Part/App/ConePy.xml | 4 +- src/Mod/Part/App/CylinderPy.xml | 4 +- src/Mod/Part/App/GeometryCurvePy.xml | 64 +++++++++---------- src/Mod/Part/App/GeometrySurfacePy.xml | 64 +++++++++---------- src/Mod/Part/App/PlanePy.xml | 4 +- .../Part/App/RectangularTrimmedSurfacePy.xml | 4 +- src/Mod/Part/App/SpherePy.xml | 4 +- src/Mod/Part/App/SurfaceOfExtrusionPy.xml | 4 +- src/Mod/Part/App/TopoShapeEdgePy.xml | 8 +-- src/Mod/Part/App/TopoShapeFacePy.xml | 2 +- src/Mod/Part/App/TopoShapeShellPy.xml | 8 +-- src/Mod/Part/App/TopoShapeSolidPy.xml | 6 +- src/Mod/Part/App/ToroidPy.xml | 4 +- 17 files changed, 147 insertions(+), 147 deletions(-) diff --git a/src/Mod/Part/App/BSplineCurvePy.xml b/src/Mod/Part/App/BSplineCurvePy.xml index 157442bfe6..55eb32897f 100644 --- a/src/Mod/Part/App/BSplineCurvePy.xml +++ b/src/Mod/Part/App/BSplineCurvePy.xml @@ -84,7 +84,7 @@ of this B-Spline curve. - + Returns true if this B-Spline curve is rational. @@ -93,12 +93,12 @@ of this B-Spline curve. - + Returns true if this BSpline curve is periodic. - + Returns true if the distance between the start point and end point of @@ -198,7 +198,7 @@ done if Degree is less than or equal to the current degree. Set a knot of the B-Spline curve. - + Get a knot of the B-Spline curve. @@ -208,7 +208,7 @@ done if Degree is less than or equal to the current degree. Set knots of the B-Spline curve. - + Get all knots of the B-Spline curve. @@ -219,12 +219,12 @@ done if Degree is less than or equal to the current degree. to the pole of index Index in the poles table. - + Get a pole of the B-Spline curve. - + Get all poles of the B-Spline curve. @@ -234,17 +234,17 @@ to the pole of index Index in the poles table. Set a weight of the B-Spline curve. - + Get a weight of the B-Spline curve. - + Get all weights of the B-Spline curve. - + Returns the table of poles and weights in homogenous ccordinates. @@ -288,13 +288,13 @@ as the origin of this periodic B-Spline curve. As a consequence, the knots and poles tables are modified. - + Returns the multiplicity of the knot of index from the knots table of this B-Spline curve. - + Returns the multiplicities table M of the knots of this B-Spline curve. @@ -335,7 +335,7 @@ from the knots table of this B-Spline curve. - + Compute the tangents for a Cardinal spline @@ -412,14 +412,14 @@ from the knots table of this B-Spline curve. - + Build a list of Bezier splines. - + Build a list of arcs and lines to approximate the b-spline. diff --git a/src/Mod/Part/App/BSplineSurfacePy.xml b/src/Mod/Part/App/BSplineSurfacePy.xml index 77c303ce35..90639e5f1c 100644 --- a/src/Mod/Part/App/BSplineSurfacePy.xml +++ b/src/Mod/Part/App/BSplineSurfacePy.xml @@ -159,14 +159,14 @@ - + 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 @@ -176,7 +176,7 @@ - + Returns false if the equation of this B-Spline surface is polynomial @@ -186,17 +186,17 @@ - + Returns true if this surface is periodic in the u parametric direction. - + Returns true if this surface is periodic in the v parametric direction. - + Checks if this surface is closed in the u parametric direction. @@ -205,7 +205,7 @@ - + Checks if this surface is closed in the v parametric direction. @@ -347,7 +347,7 @@ - + Returns, for this B-Spline surface, in the u parametric direction @@ -355,7 +355,7 @@ - + Returns, for this B-Spline surface, in the v parametric direction @@ -379,7 +379,7 @@ - + Returns, for this B-Spline surface, the knots table @@ -387,7 +387,7 @@ - + Returns, for this B-Spline surface, the knots table @@ -430,14 +430,14 @@ - + Returns the pole of index (UIndex,VIndex) of this B-Spline surface. - + Returns the table of poles of this B-Spline surface. @@ -479,7 +479,7 @@ - + Return the weight of the pole of index (UIndex,VIndex) @@ -487,12 +487,12 @@ - + Returns the table of weights of the poles for this B-Spline surface. - + Returns the table of poles and weights in homogenous ccordinates. @@ -623,7 +623,7 @@ - + Returns, for this B-Spline surface, the multiplicity of @@ -631,7 +631,7 @@ - + Returns, for this B-Spline surface, the multiplicity of @@ -639,7 +639,7 @@ - + Returns, for this B-Spline surface, the table of @@ -647,7 +647,7 @@ - + Returns, for this B-Spline surface, the table of @@ -668,12 +668,12 @@ - + Builds the U isoparametric B-Spline curve of this B-Spline surface - + Builds the V isoparametric B-Spline curve of this B-Spline surface diff --git a/src/Mod/Part/App/BezierCurvePy.xml b/src/Mod/Part/App/BezierCurvePy.xml index f54fc6fe07..ef5b190427 100644 --- a/src/Mod/Part/App/BezierCurvePy.xml +++ b/src/Mod/Part/App/BezierCurvePy.xml @@ -64,17 +64,17 @@ Bezier curve curve. This value is 25. - + Returns false if the weights of all the poles of this Bezier curve are equal. - + Returns false. - + Returns true if the distance between the start point and end point of this Bezier curve is less than or equal to gp::Resolution(). @@ -114,12 +114,12 @@ If this Bezier curve is rational, it can become non-rational. Set a pole of the Bezier curve. - + Get a pole of the Bezier curve. - + Get all poles of the Bezier curve. @@ -137,12 +137,12 @@ If this Bezier curve is rational, it can become non-rational. - + Get a weight of the Bezier curve. - + Get all weights of the Bezier curve. diff --git a/src/Mod/Part/App/BezierSurfacePy.xml b/src/Mod/Part/App/BezierSurfacePy.xml index 4c4882656b..ec72c1aee9 100644 --- a/src/Mod/Part/App/BezierSurfacePy.xml +++ b/src/Mod/Part/App/BezierSurfacePy.xml @@ -61,14 +61,14 @@ - + Returns the parametric bounds (U1, U2, V1, V2) of this Bezier surface. - + Returns false if the equation of this Bezier surface is polynomial @@ -78,7 +78,7 @@ - + Returns false if the equation of this Bezier surface is polynomial @@ -88,17 +88,17 @@ - + Returns false. - + Returns false. - + Checks if this surface is closed in the u parametric direction. @@ -107,7 +107,7 @@ - + Checks if this surface is closed in the v parametric direction. @@ -233,12 +233,12 @@ Set the row of poles of the Bezier surface. - + Get a pole of index (UIndex,VIndex) of the Bezier surface. - + Get all poles of the Bezier surface. @@ -267,7 +267,7 @@ - + Get a weight of the pole of index (UIndex,VIndex) @@ -275,7 +275,7 @@ - + Get all weights of the Bezier surface. @@ -308,12 +308,12 @@ - + Builds the U isoparametric Bezier curve of this Bezier surface - + Builds the V isoparametric Bezier curve of this Bezier surface diff --git a/src/Mod/Part/App/ConePy.xml b/src/Mod/Part/App/ConePy.xml index 39c64e5835..4a88d3910b 100644 --- a/src/Mod/Part/App/ConePy.xml +++ b/src/Mod/Part/App/ConePy.xml @@ -71,12 +71,12 @@ - + Builds the U isoparametric circle of this cone - + Builds the V isoparametric circle of this cone diff --git a/src/Mod/Part/App/CylinderPy.xml b/src/Mod/Part/App/CylinderPy.xml index a228416c13..e84c29a64c 100644 --- a/src/Mod/Part/App/CylinderPy.xml +++ b/src/Mod/Part/App/CylinderPy.xml @@ -49,12 +49,12 @@ - + Builds the U isoparametric circle of this cylinder - + Builds the V isoparametric circle of this cylinder diff --git a/src/Mod/Part/App/GeometryCurvePy.xml b/src/Mod/Part/App/GeometryCurvePy.xml index ca95a57e46..0c32d7a758 100644 --- a/src/Mod/Part/App/GeometryCurvePy.xml +++ b/src/Mod/Part/App/GeometryCurvePy.xml @@ -58,39 +58,39 @@ Part.show(s) - + Computes the length of a curve 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 - + Computes the point of parameter u on this curve - + Computes the tangent of parameter u on this curve - + Make a ruled surface of this and the given curves - + Get intersection points with another curve lying on a plane. - + Returns the parameter on the curve of the nearest orthogonal projection of the point. @@ -111,28 +111,28 @@ of the nearest orthogonal projection of the point. Vector = centerOfCurvature(float pos) - Get the center of curvature at the given parameter [First|Last] if defined - - - - Returns all intersection points and curve segments between the curve and the curve/surface. - - - - - - - Returns all intersection points and curve segments between the curve and the surface. - - - - - - - Returns all intersection points between this curve and the given curve. - - - - + + + + Returns all intersection points and curve segments between the curve and the curve/surface. + + + + + + + Returns all intersection points and curve segments between the curve and the surface. + + + + + + + Returns all intersection points between this curve and the given curve. + + + + Converts a curve of any type (only part from First to Last) @@ -140,7 +140,7 @@ of the nearest orthogonal projection of the point. - + Converts a curve of any type (only part from First to Last) @@ -148,7 +148,7 @@ of the nearest orthogonal projection of the point. - + Returns a trimmed curve defined in the given parameter range @@ -156,7 +156,7 @@ of the nearest orthogonal projection of the point. - + Approximates a curve of any type to a B-Spline curve diff --git a/src/Mod/Part/App/GeometrySurfacePy.xml b/src/Mod/Part/App/GeometrySurfacePy.xml index b2276984d6..cc2f62da8d 100644 --- a/src/Mod/Part/App/GeometrySurfacePy.xml +++ b/src/Mod/Part/App/GeometrySurfacePy.xml @@ -22,39 +22,39 @@ Return the shape for the geometry. - + value(u,v) -> Point Computes the point of parameter (u,v) on this surface - + tangent(u,v) -> (Vector,Vector) Computes the tangent of parameter (u,v) on this geometry - + normal(u,v) -> Vector Computes the normal of parameter (u,v) on this geometry - + isUmbillic(u,v) -> bool Check if the geometry on parameter is an umbillic point, i.e. maximum and minimum curvature are equal. - + curvature(u,v,type) -> float The value of type must be one of this: Max, Min, Mean or Gauss Computes the curvature of parameter (u,v) on this geometry - + curvatureDirections(u,v) -> (Vector,Vector) Computes the directions of maximum and minimum curvature @@ -64,14 +64,14 @@ the second vector corresponds to the minimum curvature. - + Returns the parametric bounds (U1, U2, V1, V2) of this trimmed surface. - + isPlanar([float]) -> Bool @@ -87,61 +87,61 @@ Checks if the surface is planar within a certain tolerance. - + Builds the U isoparametric curve - + Builds the V isoparametric curve - + Returns true if this patch is periodic in the given parametric direction. - + Returns true if this patch is periodic in the given parametric direction. - + Checks if this surface is closed in the u parametric direction. - + Checks if this surface is closed in the v parametric direction. - + Returns the period of this patch in the u parametric direction. - + Returns the period of this patch in the v parametric direction. - + Returns the parameter on the curve of the nearest orthogonal projection of the point. - + Returns a B-Spline representation of this surface. @@ -156,22 +156,22 @@ The required arguments are: - - - - Returns all intersection points/curves between the surface and the curve/surface. - - - - - - - Returns all intersection curves of this surface and the given surface. + + + + Returns all intersection points/curves between the surface and the curve/surface. + + + + + + +Returns all intersection curves of this surface and the given surface. The required arguments are: * Second surface * precision code (optional, default=0) - - - + + + diff --git a/src/Mod/Part/App/PlanePy.xml b/src/Mod/Part/App/PlanePy.xml index 593103363d..ae6ec9d4ff 100644 --- a/src/Mod/Part/App/PlanePy.xml +++ b/src/Mod/Part/App/PlanePy.xml @@ -47,12 +47,12 @@ Part.Plane(A,B,C,D) - + Builds the U isoparametric line of this plane - + Builds the V isoparametric line of this plane diff --git a/src/Mod/Part/App/RectangularTrimmedSurfacePy.xml b/src/Mod/Part/App/RectangularTrimmedSurfacePy.xml index 2c515e89d2..a5e29af748 100644 --- a/src/Mod/Part/App/RectangularTrimmedSurfacePy.xml +++ b/src/Mod/Part/App/RectangularTrimmedSurfacePy.xml @@ -25,12 +25,12 @@ The trimmed surface is built from a copy of the basis surface. Therefore, when t is modified the trimmed surface is not changed. Consequently, the trimmed surface does not necessarily have the same orientation as the basis surface. - + Builds the U isoparametric curve - + Builds the V isoparametric curve diff --git a/src/Mod/Part/App/SpherePy.xml b/src/Mod/Part/App/SpherePy.xml index 18d5281042..3d60b16142 100644 --- a/src/Mod/Part/App/SpherePy.xml +++ b/src/Mod/Part/App/SpherePy.xml @@ -45,14 +45,14 @@ - + Builds the U isoparametric circle of this sphere - + Builds the V isoparametric circle of this sphere where V must be in the range [-Pi/2,Pi/2] diff --git a/src/Mod/Part/App/SurfaceOfExtrusionPy.xml b/src/Mod/Part/App/SurfaceOfExtrusionPy.xml index aeba0e24f6..834fa3f92b 100644 --- a/src/Mod/Part/App/SurfaceOfExtrusionPy.xml +++ b/src/Mod/Part/App/SurfaceOfExtrusionPy.xml @@ -31,12 +31,12 @@ - + Builds the U isoparametric curve - + Builds the V isoparametric curve diff --git a/src/Mod/Part/App/TopoShapeEdgePy.xml b/src/Mod/Part/App/TopoShapeEdgePy.xml index f7521017cb..6dc69dec92 100644 --- a/src/Mod/Part/App/TopoShapeEdgePy.xml +++ b/src/Mod/Part/App/TopoShapeEdgePy.xml @@ -298,7 +298,7 @@ Returns: Vector = centerOfCurvatureAt(float pos) - Get the center of curvature at the given parameter [First|Last] if defined - + Vertex = firstVertex(Orientation=False) Returns the Vertex of orientation FORWARD in this edge. @@ -307,7 +307,7 @@ Orientation = True : taking into account the edge orientation - + Vertex = lastVertex(Orientation=False) Returns the Vertex of orientation REVERSED in this edge. @@ -351,7 +351,7 @@ Part.show(s) - + Wire = split(paramval) Splits the edge at the given parameter values and builds a wire out of it @@ -369,7 +369,7 @@ Returns: - + isSeam(Face) - Checks whether the edge is a seam edge. diff --git a/src/Mod/Part/App/TopoShapeFacePy.xml b/src/Mod/Part/App/TopoShapeFacePy.xml index c0cdec9db9..0b6b200512 100644 --- a/src/Mod/Part/App/TopoShapeFacePy.xml +++ b/src/Mod/Part/App/TopoShapeFacePy.xml @@ -73,7 +73,7 @@ An exception is raised if the face is not triangulated. Validate the face. - + curveonSurface(Edge) -> None or tuple diff --git a/src/Mod/Part/App/TopoShapeShellPy.xml b/src/Mod/Part/App/TopoShapeShellPy.xml index 0d889482b4..4ee57b38ac 100644 --- a/src/Mod/Part/App/TopoShapeShellPy.xml +++ b/src/Mod/Part/App/TopoShapeShellPy.xml @@ -19,17 +19,17 @@ Add a face to the shell. - + Get free edges as compound. - + Get bad edges as compound. - + Make a half-space solid by this shell and a reference point. @@ -93,4 +93,4 @@ coordinate system. - + diff --git a/src/Mod/Part/App/TopoShapeSolidPy.xml b/src/Mod/Part/App/TopoShapeSolidPy.xml index 932d484815..977ba337d7 100644 --- a/src/Mod/Part/App/TopoShapeSolidPy.xml +++ b/src/Mod/Part/App/TopoShapeSolidPy.xml @@ -80,19 +80,19 @@ shape if the solid has no shells - + computes the moment of inertia of the material system about the axis A. mySolid.getMomentOfInertia( point, direction ) - + Returns the radius of gyration of the current system about the axis A. mySolid.getRadiusOfGyration( point, direction ) - + Extrude single faces of the solid. Example: diff --git a/src/Mod/Part/App/ToroidPy.xml b/src/Mod/Part/App/ToroidPy.xml index 70b6eff7ed..be4f1f09ca 100644 --- a/src/Mod/Part/App/ToroidPy.xml +++ b/src/Mod/Part/App/ToroidPy.xml @@ -51,12 +51,12 @@ - + Builds the U isoparametric circle of this toroid - + Builds the V isoparametric circle of this toroid