Modelling a building floor #376
nicolas-f
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Modeling in 3D the following main room and corridor in I-Simpa thanks to Inkscape and OpenSCAD:
Install Inkscape
Install OpenSCAD
Open Inkscape and drag and drop the image
To calculate the image size so that 48.1 mm in vector corresponds to 481 cm of the plane:
The image is 2108 pixels wide and the living room is 776 pixels wide.
The image should therefore be 2108*48.1/776=130.66 mm wide.
Click on the cursor in the top left-hand corner and select the image,
click on the lock to lock width height of the image:
In width, type 130.66
We're now going to draw the outline of the propagation zone
Click on the line segment tool:
Select the create a sequence of paraxial line segments mode.
Hold down the Ctrl key and draw the first wall (to align at 90°).
Continue the contour until you click on the first point you made.
Select your outline and copy and paste it into a new Inkscape document,
Adjust the page to the size of the object.
Save your project as plan.svg
Open openscad and save the empty project in the same folder as plan.svg
In the editor, type :
linear_extrude(2400) scale(100) import("plan.svg");
the plan is imported, resized to actual size (mm unit on openscad) and extruded to a height of 2.4 m.
Click on Design/"Calculate rendering" ( F6 )
Edit settings of OpenSCAD and check Advanced/Export Features/Default to ASCII STL export
Export in STL format
In I-SIMPA, import the model, select mm unit then validate.
Your project is ready for the simulation (you can check the 3d model by running a mesh preview)
Beta Was this translation helpful? Give feedback.
All reactions