Download src/Mod/Part/App/GeomPlate/PointConstraint.pyi from AbdulElahGwaith/FreeCAD: direct link, hf CLI and curl.
- Browser
- Download file 3.84 kB
-
https://huggingface.co/AbdulElahGwaith/FreeCAD/resolve/main/src/Mod/Part/App/GeomPlate/PointConstraint.pyi
- Command line
-
hf download hf://AbdulElahGwaith/FreeCAD/src/Mod/Part/App/GeomPlate/PointConstraint.pyi
-
curl -L -o PointConstraint.pyi https://huggingface.co/AbdulElahGwaith/FreeCAD/resolve/main/src/Mod/Part/App/GeomPlate/PointConstraint.pyi
3.84 kB
| # SPDX-License-Identifier: LGPL-2.1-or-later | |
| from __future__ import annotations | |
| from Base.Metadata import export | |
| from Base.PyObjectBase import PyObjectBase | |
| from typing import Tuple | |
| class PointConstraint(PyObjectBase): | |
| """ | |
| Defines points as constraints to be used to deform a surface | |
| Author: Werner Mayer (wmayer@users.sourceforge.net) | |
| Licence: LGPL | |
| """ | |
| def setOrder(self, order: str, /) -> None: | |
| """ | |
| Allows you to set the order of continuity required for | |
| the constraints: G0, G1, and G2, controlled | |
| respectively by G0Criterion G1Criterion and G2Criterion. | |
| """ | |
| ... | |
| def order(self) -> str: | |
| """ | |
| Returns the order of constraint, one of G0, G1 or G2 | |
| """ | |
| ... | |
| def G0Criterion(self, U: float, /) -> float: | |
| """ | |
| Returns the G0 criterion at the parametric point U on | |
| the curve. This is the greatest distance allowed between | |
| the constraint and the target surface at U. | |
| """ | |
| ... | |
| def G1Criterion(self, U: float, /) -> float: | |
| """ | |
| Returns the G1 criterion at the parametric point U on | |
| the curve. This is the greatest angle allowed between | |
| the constraint and the target surface at U. | |
| Raises an exception if the curve is not on a surface. | |
| """ | |
| ... | |
| def G2Criterion(self, U: float, /) -> float: | |
| """ | |
| Returns the G2 criterion at the parametric point U on | |
| the curve. This is the greatest difference in curvature | |
| allowed between the constraint and the target surface at U. | |
| Raises an exception if the curve is not on a surface. | |
| """ | |
| ... | |
| def setG0Criterion(self, value: float, /) -> None: | |
| """ | |
| Allows you to set the G0 criterion. This is the law | |
| defining the greatest distance allowed between the | |
| constraint and the target surface for each point of the | |
| constraint. If this criterion is not set, TolDist, the | |
| distance tolerance from the constructor, is used. | |
| """ | |
| ... | |
| def setG1Criterion(self, value: float, /) -> None: | |
| """ | |
| Allows you to set the G1 criterion. This is the law | |
| defining the greatest angle allowed between the | |
| constraint and the target surface. If this criterion is not | |
| set, TolAng, the angular tolerance from the constructor, is used. | |
| Raises an exception if the curve is not on a surface | |
| """ | |
| ... | |
| def setG2Criterion(self, value: float, /) -> None: | |
| """ | |
| Allows you to set the G2 criterion. This is the law | |
| defining the greatest difference in curvature allowed between the | |
| constraint and the target surface. If this criterion is not | |
| set, TolCurv, the curvature tolerance from the constructor, is used. | |
| Raises ConstructionError if the curve is not on a surface | |
| """ | |
| ... | |
| def hasPnt2dOnSurf(self) -> bool: | |
| """ | |
| Checks if there is a 2D point associated with the surface. It returns a boolean indicating whether such a point exists. | |
| """ | |
| ... | |
| def setPnt2dOnSurf(self, x: float, y: float, /) -> None: | |
| """ | |
| Allows you to set a 2D point on the surface. It takes a gp_Pnt2d as an argument, representing the 2D point to be associated with the surface. | |
| """ | |
| ... | |
| def pnt2dOnSurf(self) -> Tuple[float, float]: | |
| """ | |
| Returns the 2D point on the surface. It returns a gp_Pnt2d representing the associated 2D point. | |
| """ | |
| ... | |