From 80a3aa8eaa7cb955637a34daa7ccc3ae6101e5ff Mon Sep 17 00:00:00 2001 From: flachyjoe Date: Mon, 22 Mar 2021 22:25:48 +0100 Subject: [PATCH] format TopoShapeWirePy.xml --- src/Mod/Part/App/TopoShapeWirePy.xml | 95 ++++++++++++++++------------ 1 file changed, 54 insertions(+), 41 deletions(-) diff --git a/src/Mod/Part/App/TopoShapeWirePy.xml b/src/Mod/Part/App/TopoShapeWirePy.xml index 4d4eb5b663..ab033e2064 100644 --- a/src/Mod/Part/App/TopoShapeWirePy.xml +++ b/src/Mod/Part/App/TopoShapeWirePy.xml @@ -1,13 +1,13 @@ - @@ -21,42 +21,55 @@ - Add an edge to the wire + Add an edge to the wire +add(edge) + Fix wire +fixWire([face, tolerance]) +-- A face and a tolerance can optionally be supplied to the algorithm: -myWire.fixWire( face, tolerance ) - + - Make this and the given wire homogeneous to have the same number of edges + Make this and the given wire homogeneous to have the same number of edges +makeHomogenousWires(wire) -> Wire + - Make a pipe by sweeping along a wire. + Make a pipe by sweeping along a wire. +makePipe(profile) -> Shape + - makePipeShell(shapeList,[isSolid,isFrenet,transition]) -Make a loft defined by a list of profiles along a wire. Transition can be -0 (default), 1 (right corners) or 2 (rounded corners). + Make a loft defined by a list of profiles along a wire. +makePipeShell(shapeList,[isSolid=False,isFrenet=False,transition=0]) -> Shape +-- +Transition can be 0 (default), 1 (right corners) or 2 (rounded corners). + - Approximate B-Spline-curve from this wire + Approximate B-Spline-curve from this wire +approximate([Tol2d,Tol3d=1e-4,MaxSegments=10,MaxDegree=3]) -> BSpline + Discretizes the wire and returns a list of points. +discretize(kwargs) -> list +-- 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) @@ -91,7 +104,7 @@ Part.show(s) p=w.discretize(Angular=0.09,Curvature=0.01,Minimum=100) s=Part.Compound([Part.Vertex(i) for i in p]) Part.show(s) - + @@ -111,43 +124,43 @@ absolute Cartesian coordinate system. - Returns the matrix of inertia. It is a symmetrical matrix. -The coefficients of the matrix are the quadratic moments of -inertia. + Returns the matrix of inertia. It is a symmetrical matrix. +The coefficients of the matrix are the quadratic moments of +inertia. - | Ixx Ixy Ixz 0 | - | Ixy Iyy Iyz 0 | - | Ixz Iyz Izz 0 | - | 0 0 0 1 | + | Ixx Ixy Ixz 0 | + | Ixy Iyy Iyz 0 | + | Ixz Iyz Izz 0 | + | 0 0 0 1 | -The moments of inertia are denoted by Ixx, Iyy, Izz. -The products of inertia are denoted by Ixy, Ixz, Iyz. -The matrix of inertia is returned in the central coordinate -system (G, Gx, Gy, Gz) where G is the centre of mass of the -system and Gx, Gy, Gz the directions parallel to the X(1,0,0) -Y(0,1,0) Z(0,0,1) directions of the absolute cartesian +The moments of inertia are denoted by Ixx, Iyy, Izz. +The products of inertia are denoted by Ixy, Ixz, Iyz. +The matrix of inertia is returned in the central coordinate +system (G, Gx, Gy, Gz) where G is the centre of mass of the +system and Gx, Gy, Gz the directions parallel to the X(1,0,0) +Y(0,1,0) Z(0,0,1) directions of the absolute cartesian coordinate system. - Returns Ix, Iy, Iz, the static moments of inertia of the - current system; i.e. the moments of inertia about the + 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. - 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 + 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.