Arch MeshToShape/ru: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
<div class="mw-translate-fuzzy"> |
|||
{{docnav/ru |
{{docnav/ru |
||
|[[Arch_SplitMesh|Split Mesh]] |
|[[Arch_SplitMesh|Split Mesh]] |
||
Line 8: | Line 9: | ||
|IconR=Arch_SelectNonSolidMeshes.png |
|IconR=Arch_SelectNonSolidMeshes.png |
||
}} |
}} |
||
</div> |
|||
{{GuiCommand/ru |
{{GuiCommand/ru |
||
Line 22: | Line 24: | ||
Этот инструмент преобразует выбранную [[Mesh Module/ru|сетку]] в объект типа [[Part Module/ru|Shape]]. Обратите внимание, этот инструмент оптимизирован для объектов с плоскими поверхностями (без кривых). Соответствующий инструмент из [[Part Workbench/ru|верстака Part]] более подходит для объектов с кривыми поверхностями. |
Этот инструмент преобразует выбранную [[Mesh Module/ru|сетку]] в объект типа [[Part Module/ru|Shape]]. Обратите внимание, этот инструмент оптимизирован для объектов с плоскими поверхностями (без кривых). Соответствующий инструмент из [[Part Workbench/ru|верстака Part]] более подходит для объектов с кривыми поверхностями. |
||
</div> |
</div> |
||
This tool is optimized for objects with flat faces (no curves). The corresponding tool {{Button|[[File:Part_ShapeFromMesh.svg|16px]] [[Part_ShapeFromMesh|Part ShapeFromMesh]]}} from the [[Image:Workbench_Part.svg|16px]] [[Part_Module|Part Workbench]] might be more suited for objects that contain curved surfaces. |
|||
==Использование== |
==Использование== |
||
Line 40: | Line 44: | ||
}} |
}} |
||
The above code snippet converts the given {{incode|obj}} (a mesh), into a shape, joining coplanar facets. |
|||
* If {{incode|mark}} is {{incode|True}}, non-solid objects will be marked in red. |
* If {{incode|mark}} is {{incode|True}}, non-solid objects will be marked in red. |
||
* If {{incode|fast}} is {{incode|True}} it uses a faster algorithm by building a shell from the facets then removing splitter. |
* If {{incode|fast}} is {{incode|True}}, it uses a faster algorithm by building a shell from the facets then removing splitter. |
||
* {{incode|tol}} is the tolerance used when converting mesh segments to wires. |
* {{incode|tol}} is the tolerance used when converting mesh segments to wires. |
||
* If {{incode|flat}} is {{incode|True}} it will force the wires to be perfectly planar |
* If {{incode|flat}} is {{incode|True}}, it will force the wires to be perfectly planar to be sure they can be converted into faces, but this might leave gaps in the final shell. |
||
* If {{incode|cut}} is {{incode|True}} holes in faces are made by subtraction. |
* If {{incode|cut}} is {{incode|True}}, holes in faces are made by subtraction. |
||
{{Code|code= |
{{Code|code= |
||
Line 59: | Line 63: | ||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
|||
{{docnav/ru |
{{docnav/ru |
||
|[[Arch_SplitMesh|Split Mesh]] |
|[[Arch_SplitMesh|Split Mesh]] |
||
Line 66: | Line 71: | ||
|IconR=Arch_SelectNonSolidMeshes.png |
|IconR=Arch_SelectNonSolidMeshes.png |
||
}} |
}} |
||
</div> |
|||
{{Arch Tools navi{{#translation:}}}} |
{{Arch Tools navi{{#translation:}}}} |
||
{{Userdocnavi{{#translation:}}}} |
{{Userdocnavi{{#translation:}}}} |
Revision as of 12:09, 6 March 2020
Arch MeshToShape |
Системное название |
---|
Arch MeshToShape |
Расположение в меню |
Архитектура → Утилиты → Сетка в фигуру |
Верстаки |
Arch |
Быстрые клавиши |
Нет |
Представлено в версии |
- |
См. также |
Arch SplitMesh, Удалить форму из Архитектуры |
Определение
Этот инструмент преобразует выбранную сетку в объект типа Shape. Обратите внимание, этот инструмент оптимизирован для объектов с плоскими поверхностями (без кривых). Соответствующий инструмент из верстака Part более подходит для объектов с кривыми поверхностями.
This tool is optimized for objects with flat faces (no curves). The corresponding tool Part ShapeFromMesh from the Part Workbench might be more suited for objects that contain curved surfaces.
Использование
- Select a mesh object.
- Press the Mesh to Shape entry in Arch → Utilities → Mesh to Shape.
Properties
Limitations
Scripting
See also: Arch API and FreeCAD Scripting Basics.
This tool can be used in macros and from the Python console by using the following function:
new_obj = meshToShape(obj, mark=True, fast=True, tol=0.001, flat=False, cut=True)
The above code snippet converts the given obj
(a mesh), into a shape, joining coplanar facets.
- If
mark
isTrue
, non-solid objects will be marked in red. - If
fast
isTrue
, it uses a faster algorithm by building a shell from the facets then removing splitter. tol
is the tolerance used when converting mesh segments to wires.- If
flat
isTrue
, it will force the wires to be perfectly planar to be sure they can be converted into faces, but this might leave gaps in the final shell. - If
cut
isTrue
, holes in faces are made by subtraction.
import Arch, Mesh, BuildRegularGeoms
Box = FreeCAD.ActiveDocument.addObject("Mesh::Cube", "Cube")
Box.Length = 1000
Box.Width = 2000
Box.Height = 1000
FreeCAD.ActiveDocument.recompute()
new_obj = Arch.meshToShape(Box)
Arch
- Elements: Wall, Structure, Curtain Wall, Window, Roof, Space, Stairs, Equipment, Frame, Fence, Truss, Profile, Pipe, Pipe Connector
- Reinforcements: Straight Rebar, U-Shape Rebar, L-Shape Rebar, Stirrup, Bent-Shape Rebar, Helical Rebar, Column Reinforcement, Beam Reinforcement, Slab Reinforcement, Footing Reinforcement, Custom Rebar
- Panels: Panel, Panel Cut, Panel Sheet, Nest
- Materials: Material, Multi-Material
- Organization: Building Part, Project, Site, Building, Level, External reference, Section Plane, Schedule
- Axes: Axis, Axes system, Grid
- Modification: Cut with plane, Add component, Remove component, Survey
- Utilities: Component, Clone component, Split Mesh, Mesh to Shape, Select non-manifold meshes, Remove Shape from Arch, Close Holes, Merge Walls, Check, Toggle IFC Brep flag, 3 Views from mesh, Create IFC spreadsheet, Toggle Subcomponents
- Additional: Preferences, Import Export Preferences (IFC, DAE, OBJ, JSON, 3DS, SHP), IfcOpenShell, IfcPlusPlus, Arch API
Документация пользователя
- Начинающим
- Установка: Загрузка, Windows, Linux, Mac, Дополнительных компонентов, Docker, AppImage, Ubuntu Snap
- Базовая: О FreeCAD, Интерфейс, Навигация мыши, Методы выделения, Имя объекта, Настройки, Верстаки, Структура документа, Свойства, Помоги FreeCAD, Пожертвования
- Помощь: Учебники, Видео учебники
- Верстаки: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework