Mesh MeshObject/pl: Difference between revisions
(Created page with "'''Siatka: Obiekt siatki''', lub formalnie {{incode|Mesh::MeshObject}}, jest klasą, która definiuje strukturę danych siatki w oprogramowaniu. Jest to podobne do obiektu P...") |
(Created page with "Siatki są zwykle tworzone za pomocą środowiska pracy Projekt Siatki lub importowane z plików STL, OBJ i podobnych formatów siatek.") |
||
Line 5: | Line 5: | ||
'''Siatka: Obiekt siatki''', lub formalnie {{incode|Mesh::MeshObject}}, jest klasą, która definiuje strukturę danych siatki w oprogramowaniu. Jest to podobne do obiektu [[Part_TopoShape/pl|Część: Kształt topologiczny]], ale dla [[Mesh/pl|siatek]]. |
'''Siatka: Obiekt siatki''', lub formalnie {{incode|Mesh::MeshObject}}, jest klasą, która definiuje strukturę danych siatki w oprogramowaniu. Jest to podobne do obiektu [[Part_TopoShape/pl|Część: Kształt topologiczny]], ale dla [[Mesh/pl|siatek]]. |
||
Siatki są zwykle tworzone za pomocą środowiska pracy [[Mesh_Workbench/pl|Projekt Siatki]] lub importowane z plików STL, OBJ i podobnych formatów siatek. |
|||
Please note that the {{Button|[[Image:Workbench_FEM.svg|16px]] [[FEM_Workbench|FEM Workbench]]}} also uses meshes, but in this case, it uses a different data structure, called [[FEM_Mesh|FEM FemMesh]] ({{incode|Fem::FemMesh}} class). This information does not apply to FEM meshes. |
Please note that the {{Button|[[Image:Workbench_FEM.svg|16px]] [[FEM_Workbench|FEM Workbench]]}} also uses meshes, but in this case, it uses a different data structure, called [[FEM_Mesh|FEM FemMesh]] ({{incode|Fem::FemMesh}} class). This information does not apply to FEM meshes. |
Revision as of 09:23, 18 December 2022
Opis
Siatka: Obiekt siatki, lub formalnie Mesh::MeshObject
, jest klasą, która definiuje strukturę danych siatki w oprogramowaniu. Jest to podobne do obiektu Część: Kształt topologiczny, ale dla siatek.
Siatki są zwykle tworzone za pomocą środowiska pracy Projekt Siatki lub importowane z plików STL, OBJ i podobnych formatów siatek.
Please note that the FEM Workbench also uses meshes, but in this case, it uses a different data structure, called FEM FemMesh (Fem::FemMesh
class). This information does not apply to FEM meshes.
Simplified diagram of the relationships between the core objects in the program. The Mesh::MeshObject
class is embedded in the Mesh::Feature
object and from there it is propagated to all objects that are derived from it.
Usage
The Mesh MeshObject is an object that is assigned to some App DocumentObjects.
In particular, the basic object that handles these types of attributes is the Mesh Feature (Mesh::Feature
class). All objects derived from this class will have access to a Mesh MeshObject.
The most notable objects that will have a Mesh MeshObject are the following:
- Any primitive mesh created with the Mesh Workbench.
- Any object created by importing an STL, OBJ, and similar mesh format files.
Scripting
See also: FreeCAD Scripting Basics, and scripted objects. For a full list of attributes and methods, consult the source documentation, and the Std PythonHelp tool.
All objects derived from Mesh::Feature
will have a Mesh MeshObject, which is normally accessible from its Mesh
attribute.
import FreeCAD as App
doc = App.newDocument()
obj = App.ActiveDocument.addObject("Mesh::Cube", "Cube")
App.ActiveDocument.recompute()
print(obj.Mesh)
A MeshObject has many attributes (variables) and methods that contain information about it, and which allow doing operations with it. These variables and methods can be tested in the Python console.
print(obj.Mesh.Area)
print(obj.Mesh.BoundBox)
print(obj.Mesh.CountPoints)
print(obj.Mesh.Volume)
obj.Mesh.copy()
obj.Mesh.countComponents()
obj.Mesh.getEigenSystem()
obj.Mesh.write("my_file.stl")
- Różności: Import siatki, Eksport siatki, Siatka z kształtu, Utwórz bryłę regularną, Rozwiń siatkę, Rozwiń powierzchnię
- Modyfikacja: Ujednolicenie wektorów normalnych, Odwróć wektory normalne, Wypełnij otworów, Wypełnij interaktywnie otwory, Dodaj element, Usuń elementy, Usuń interaktywnie elementy, Wygładzanie, Uprość przez Gmsh, Uprość, Skala
- Logiczne: Połączenie, Przecięcie, Różnica
- Krojenie: Przetnij, Przytnij, Przytnij siatkę płaszczyzną, Przekrój płaszczyzną, Wiele przekrojów
- Części składowe i segmenty: Scal, Rozbij na komponenty, Utwórz segment siatki, Tworzenie segmentów siatki z najlepiej dopasowanych powierzchni
- Rdzenne: App: Obiekt dokumentu
- Podstawowe: : Właściwości Python, App: Cechy geometrii, Część: Cecha, Siatka: Cecha, MES: Siatka
- Kształty wewnętrzne: Część: Kształt topologiczny, Siatka: Obiekt siatki, MES: Siatka
- Struktura: App: Obiekt grupy dokumentu (Std: Grupa), App: Część (Std: Część), App: Link
- Pochodne: Część: Part2DObject, Szkicownik: Obiekt szkicu, Projekt części: Zawartość, Projekt części: Cecha
- Jak zacząć
- Instalacja: Pobieranie programu, Windows, Linux, Mac, Dodatkowych komponentów, Docker, AppImage, Ubuntu Snap
- Podstawy: Informacje na temat FreeCAD, Interfejs użytkownika, Profil nawigacji myszką, Metody wyboru, Nazwa obiektu, Edytor ustawień, Środowiska pracy, Struktura dokumentu, Właściwości, Pomóż w rozwoju FreeCAD, Dotacje
- Pomoc: Poradniki, Wideo poradniki
- Środowiska pracy: Strona Startowa, Architektura, Assembly, CAM, Rysunek Roboczy, MES, Inspekcja, Siatka, OpenSCAD, Część, Projekt Części, Punkty, Inżynieria Wsteczna, Robot, Szkicownik, Arkusz Kalkulacyjny, Powierzchnia 3D, Rysunek Techniczny, Test Framework