Difference between revisions of "Regard3D+Blender+FreeCAD workflow"

From Wiki.OSArch
Line 96: Line 96:
 
This step is for generating PDF files for printing, with 2D CAD documentation (sections, elevations, etc) with FreeCAD. The idea is to work with these 2D drawings in a new and independent FreeCAD file (independent from the 3D models file) that is very light and can be shared easily. The workflow involves the use of [https://wiki.freecadweb.org/Draft_Module Draft workbench] and [https://wiki.freecadweb.org/TechDraw_Module TechDraw workbench].
 
This step is for generating PDF files for printing, with 2D CAD documentation (sections, elevations, etc) with FreeCAD. The idea is to work with these 2D drawings in a new and independent FreeCAD file (independent from the 3D models file) that is very light and can be shared easily. The workflow involves the use of [https://wiki.freecadweb.org/Draft_Module Draft workbench] and [https://wiki.freecadweb.org/TechDraw_Module TechDraw workbench].
  
[https://community.osarch.org/uploads/editor/9w/0qj3m2zvdwbx.zip Link to the 2D FreeCAD file.]
+
As an example you can have a look on this FreeCAD file:[https://community.osarch.org/uploads/editor/9w/0qj3m2zvdwbx.zip Link to the 2D FreeCAD file.]
  
 
===== 2D drawing with Draft workbench =====
 
===== 2D drawing with Draft workbench =====

Revision as of 20:33, 24 April 2021

This page describes an example workflow. See similar pages visit the example workflow category

Forum's discussion.

This wiki present a FLOSS workflow for an architecture job (documentation and registration of an existing house renovation), that involve the use of Regard3D, Blender and FreeCAD for Geometry Scanning, BIM modeling and CAD documentation. This workflow is fully multi-platform (the three programs run on Windows, Mac, Linux).

FLOSS SummaryWorkflow.png

Tools

As a basic requirement for this tutorial, it is necessary to have a medium level of knowledge about the tools used in this workflow.


Regard3D

Blender (v2.8)

Point Cloud Visualiser

FreeCAD (v0.19)

Geometry scanning

The idea is to gather geometry data of an existing building for further 3D modeling process. For this purpose, we will use open source photogrammetry software.

Creation of data set of photos
  1. Camera's metadata must include focus lens (you can add that information manually later).
  2. Shoot several photos of the building with a camera or smartphone. In general it is good to take more than 60-80 images from different angles. Look for info about photogrammetry good practices.
Point cloud generation with Regard3D.
  1. For this step it is used Regard3D, but there are other photogrammetry programs that can be used. Refers to Software Directory for more options.
  2. Import image set.
  3. Generate point clouds of the model (see tutorial ).
  4. Export point cloud file (*.ply). You can save several point clouds files to cover all facades of the building.
  5. Mesh generation (Optional). Also, you can generate mesh surfaces with the point clouds. But, for this case I found efficient enough to work only with the point clouds.


Regard3d.png

3D Mesh modeling

Volumetric mesh reconstruction with Blender + point cloud visualizer (0.9.3v). Using Blender You can visualise the point cloud and generate a volumetric mesh to get the general dimensions and shapes of the building. However, this step is optional, because you can directly import the point clouds into FreeCAD. Anyway, the point cloud visualiser has more manipulation options than FreeCAD.

Importing the point clouds
  1. Install Point Cloud Visualiser add-on (0.9.3v is free). Here more documentation. But these are basic steps to load and work in Blender:
  2. In blender create a empty object.
  3. Import a point cloud file in the empty object, using PCV.
  4. Edit the point cloud position and scale it, if it is necessary (use Enable Edit Mode, in the PCV panel).
  5. Export new edited point cloud in the empty object, to save the edition (use Export PLY in the PCV panel).
  6. When you open the blender file, select the empty object and load the last exported PLY file, to display the edited point cloud.
Blender PCV.png
Blender pointcloud.png
Geometry modeling
  1. Model the main volumes with Bleder, using the points as reference.
  2. Opt 1) convert the Blender meshes into BIM models using BlenderBIM add-on.
    • Install BlenderBIM Add-on
    • Set the meshes as BIM objects
    • Export the model as IFC file
  1. Opt 2)Export the model as a mesh file (OBJ, STL...).


Blenderpointcloud.png

BIM modeling

Develop a BIM model with FreeCAD (using as reference the mesh or the IFC file from Blender). Once you got a good mesh volume of the building geometry, export a stl file or IFC file to FreeCAD to recreate the main walls, windows, doors and aditional architecture details of the building with the Arch Workbench. For this workflow the idea is to save a file with only 3D models.

Importing the files to FreeCAD
  1. Opt 1) Import a mesh file.
    • If the result of the previous step was a simple mesh file, you can import and scale the mesh with Mesh Design workbench.
  2. Opt 2) Import a IFC file.
    • If the result of the previous step was a IFC file, FreeCAD can import IFC2x3 or IFC4 based files. See Arch IFC.
    • Check the FreeCAD Preference for additional options of IFC import/export feature.
BIM modeling
  1. Based on the mesh/IFC, generate or complete the BIM model using the Arch Workbench or eventually, BIM Workbench.
  2. For each building, place the 3D model components (walls, structures, and other arch elements) into an Arch Building Part.
  3. For each Arch Building Part, create Arch Section Planes (elevations, plans, sections, etc).
  4. For each Arch Section Planes, create Draft Shape2DView objects. You can edit the labels of these Shape2DView to refer view names.
    • Open Draft Workbench.
    • Create all the Shape2DView projections, considering the necessary 2D views for the CAD documentation.
    • Arrange the Shape2DView projections in the 3D scene. Once you are done, you should not move these projections anymore.
  5. Save and close this file. This file will contain the 3D geometries and the plain Shape2DView projections for future references.


FreeCAD BIM.png
Freecad 3G2B1kQvK2.png
Freecad BIM2.png

2D CAD documentation

This step is for generating PDF files for printing, with 2D CAD documentation (sections, elevations, etc) with FreeCAD. The idea is to work with these 2D drawings in a new and independent FreeCAD file (independent from the 3D models file) that is very light and can be shared easily. The workflow involves the use of Draft workbench and TechDraw workbench.

As an example you can have a look on this FreeCAD file:Link to the 2D FreeCAD file.

2D drawing with Draft workbench
  1. Create a new FC file.
  2. Import the Shape2DView objects from the FreeCAD file with the 3D models, using Arch Reference.
  3. As alternative, you can import the Shape2DView objects using App:Link option.
  4. Open Draft workbench.
  5. Arrange the Shape2DView objects in the 3D space.
  6. Draw annotations, dimensions, symbols, lines, etc. with Draft workbench tools.
  7. Create a set of layers for Shape2DView objects, Dimensions, symbols, etc with Draft Layer.
  8. Place each group of 2D elements into the respective layer.
  9. Save the file.
Freecad JueqoDg3k8.png
Page layout with TechDraw workbench

This workflow is jut a suggestion. You can develop one for your own. But the purpose is to generate drawings with different line widths and styles, to enrich the sheet presentation.

  1. Open TechDraw workbench
  2. Create a new TD Page (define format and scale).
  3. Select a Shape2DView object or a group of them, from the Combo View panel.
  4. Press TechDraw Insert View (TDIV) command.
  5. Select Draft objects (lines, symbols), from the Combo View panel.
  6. Press TDIV command to insert them in the TD Page.
  7. On the TD page, place the TDIV of draft objects on top of the first TDIV.
  8. With several TDIV for each group of objects, you can assign different properties (line width).
  9. Select the Draft Layer of dimensions, in the Combo View panel.
    • Press TD Draft View and setup its properties.
    • Place on top of the rest of TDIV.
  10. For lines with style, select their Draft Layer. Press TD DraftView and setup the properties:
    • Data/ Line Style = 5,2,0,5,2 (or something similar).
    • Data/ Override Style = true
  11. Create a TD ClipGroup and place all the views inside.
  12. You can create more TD pages if you want.
Recommended links between TechDraw Views and 2D objects
use TD InsertView for Shape2DView Plans, Sections Allow to apply hatches on plans and sections areas.
use TD InsertView for Draft lines simple lines and symbols Allow to work with different line widths.
use TD DraftView for Draft Layers Dimensions, Texts, lines Allow to apply line styles and other properties on group of draft objects
use TD DraftView for Draft objects simple lines and symbols Allow to apply line styles and other properties on individual objects
Export PDF files
  1. Once the TD page is ready, you can move or share this FC file, and export PDF files of the drawing sheets.
    • Select the TD page to export.
    • Press Menu File - Export PDF.


2DDrawingFC01.png


2DDrawingFC02.png


Icon FreeCAD.png This page is FreeCAD documentation. Full documentation is available at the FreeCAD documentation wiki. All articles in the OSArch wiki related to FreeCAD can be seen in the FreeCAD Category