Download src/Mod/Mesh/App/MeshFeature.pyi from AbdulElahGwaith/FreeCAD: direct link, hf CLI and curl.
- Browser
- Download file 2.51 kB
-
https://huggingface.co/AbdulElahGwaith/FreeCAD/resolve/main/src/Mod/Mesh/App/MeshFeature.pyi
- Command line
-
hf download hf://AbdulElahGwaith/FreeCAD/src/Mod/Mesh/App/MeshFeature.pyi
-
curl -L -o MeshFeature.pyi https://huggingface.co/AbdulElahGwaith/FreeCAD/resolve/main/src/Mod/Mesh/App/MeshFeature.pyi
2.51 kB
| # SPDX-License-Identifier: LGPL-2.1-or-later | |
| from __future__ import annotations | |
| from typing import Any | |
| from Base.Metadata import export | |
| from App.GeoFeature import GeoFeature | |
| class MeshFeature(GeoFeature): | |
| """ | |
| The Mesh::Feature class handles meshes. | |
| The Mesh.MeshFeature() function is for internal use only and cannot be used to create instances of this class. | |
| Therefore you must have a reference to a document, e.g. 'd' then you can create an instance with | |
| d.addObject("Mesh::Feature"). | |
| Author: Werner Mayer (wmayer@users.sourceforge.net) | |
| License: LGPL-2.1-or-later | |
| """ | |
| def countPoints(self) -> Any: | |
| """Return the number of vertices of the mesh object""" | |
| ... | |
| def countFacets(self) -> Any: | |
| """Return the number of facets of the mesh object""" | |
| ... | |
| def harmonizeNormals(self) -> Any: | |
| """Adjust wrong oriented facets""" | |
| ... | |
| def smooth(self) -> Any: | |
| """Smooth the mesh data""" | |
| ... | |
| def decimate(self) -> Any: | |
| """ | |
| Decimate the mesh | |
| decimate(tolerance(Float), reduction(Float)) | |
| tolerance: maximum error | |
| reduction: reduction factor must be in the range [0.0,1.0] | |
| Example: | |
| mesh.decimate(0.5, 0.1) # reduction by up to 10 percent | |
| mesh.decimate(0.5, 0.9) # reduction by up to 90 percent | |
| or | |
| decimate(targwt size(int)) | |
| mesh.decimate(mesh.CountFacets/2) | |
| """ | |
| ... | |
| def removeNonManifolds(self) -> Any: | |
| """Remove non-manifolds""" | |
| ... | |
| def removeNonManifoldPoints(self) -> Any: | |
| """Remove non-manifold points""" | |
| ... | |
| def fixIndices(self) -> Any: | |
| """Repair any invalid indices""" | |
| ... | |
| def fixDegenerations(self) -> Any: | |
| """Remove degenerated facets""" | |
| ... | |
| def removeDuplicatedFacets(self) -> Any: | |
| """Remove duplicated facets""" | |
| ... | |
| def removeDuplicatedPoints(self) -> Any: | |
| """Remove duplicated points""" | |
| ... | |
| def fixSelfIntersections(self) -> Any: | |
| """Repair self-intersections""" | |
| ... | |
| def removeFoldsOnSurface(self) -> Any: | |
| """Remove folds on surfaces""" | |
| ... | |
| def removeInvalidPoints(self) -> Any: | |
| """Remove points with invalid coordinates (NaN)""" | |
| ... | |