Arch MeshToShape/sv: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
{{docnav/sv |
{{docnav/sv |
||
|[[Arch_SplitMesh|Split Mesh]] |
|[[Arch_SplitMesh|Split Mesh]] |
||
|[[Arch_SelectNonSolidMeshes|Select non-solid meshes]] |
|[[Arch_SelectNonSolidMeshes|Select non-solid meshes]] |
||
|[[ |
|[[Arch_Workbench|Arch]] |
||
|IconL=Arch_SplitMesh.svg |
|IconL=Arch_SplitMesh.svg |
||
|IconC=Workbench_Arch.svg |
|IconC=Workbench_Arch.svg |
||
Line 15: | Line 16: | ||
|Name=Arch MeshToShape|Name/sv=Arch MeshToShape |
|Name=Arch MeshToShape|Name/sv=Arch MeshToShape |
||
|MenuLocation=Arch → Utilities → Mesh to Shape |
|MenuLocation=Arch → Utilities → Mesh to Shape |
||
|Workbenches=[[ |
|Workbenches=[[Arch_Workbench/sv|Arch]] |
||
|SeeAlso=[[Arch SplitMesh/sv|Arch SplitMesh]], [[Arch RemoveShape/sv|Arch RemoveShape]] |
|SeeAlso=[[Arch SplitMesh/sv|Arch SplitMesh]], [[Arch RemoveShape/sv|Arch RemoveShape]] |
||
}} |
}} |
||
Line 24: | Line 25: | ||
[[Arch_MeshToShape|Arch MeshToShape]] converts a selected [[Mesh|Mesh]] ([[Mesh_Feature|Mesh Feature]]) object into a [[Shape|Shape]] ([[Part_Feature|Part Feature]]) object. |
[[Arch_MeshToShape|Arch MeshToShape]] converts a selected [[Mesh|Mesh]] ([[Mesh_Feature|Mesh Feature]]) object into a [[Shape|Shape]] ([[Part_Feature|Part Feature]]) object. |
||
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]] [[ |
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_Workbench|Part Workbench]] might be more suited for objects that contain curved surfaces. |
||
==Usage== |
==Usage== |
||
# Select a mesh object. |
# Select a mesh object. |
||
# Press the {{Button|[[Image:Arch MeshToShape.svg|16px]] [[ |
# Press the {{Button|[[Image:Arch MeshToShape.svg|16px]] [[Arch_MeshToShape|Mesh to Shape]]}} entry in {{MenuCommand|Arch → Utilities → Mesh to Shape}}. |
||
==Properties== |
==Properties== |
||
Line 36: | Line 37: | ||
==Scripting== |
==Scripting== |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{Code|code= |
{{Code|code= |
||
new_obj = meshToShape(obj, mark=True, fast=True, tol=0.001, flat=False, cut=True) |
new_obj = meshToShape(obj, mark=True, fast=True, tol=0.001, flat=False, cut=True) |
||
Line 62: | Line 64: | ||
new_obj = Arch.meshToShape(Box) |
new_obj = Arch.meshToShape(Box) |
||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
Line 67: | Line 70: | ||
|[[Arch_SplitMesh|Split Mesh]] |
|[[Arch_SplitMesh|Split Mesh]] |
||
|[[Arch_SelectNonSolidMeshes|Select non-solid meshes]] |
|[[Arch_SelectNonSolidMeshes|Select non-solid meshes]] |
||
|[[ |
|[[Arch_Workbench|Arch]]|IconL=Arch_SplitMesh.svg |
||
|IconC=Workbench_Arch.svg |
|IconC=Workbench_Arch.svg |
||
|IconR=Arch_SelectNonSolidMeshes.png |
|IconR=Arch_SelectNonSolidMeshes.png |
Latest revision as of 18:12, 10 March 2022
Arch MeshToShape |
Menyplacering |
---|
Arch → Utilities → Mesh to Shape |
Arbetsbänkar |
Arch |
Standard genväg |
Ingen |
Introducerad i version |
- |
Se även |
Arch SplitMesh, Arch RemoveShape |
Beskrivning
Arch MeshToShape converts a selected Mesh (Mesh Feature) object into a Shape (Part Feature) object.
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.
Usage
- 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.
Example:
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
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub