Create a volume (shell) from shapes

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
ragohix769
Posts: 568
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

Create a volume (shell) from shapes

Post by ragohix769 »

Simple (and dumb, sorry) question: I have a set of shapes created with draft, that creates a volume. I can measure surfaces with survey tool in Arch/BIM, that's ok.
Now I want to know the volume of that. So tried with a boolean fuse, nothing. Tried to create a shell from shapes, but maybe i've done that one time, but it was random. Created copy, simple copy, compound, then in Part make solid, but nothing. I imagine there is some simple mehod to create a solid volume from shapes, but what's that method?
Attachments
create_volume_from_shape_v001.FCStd
(69.88 KiB) Downloaded 39 times
Last edited by ragohix769 on Sat Mar 12, 2022 1:26 am, edited 2 times in total.
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
User avatar
Roy_043
Veteran
Posts: 8552
Joined: Thu Dec 27, 2018 12:28 pm

Re: Create a volume from shapes usable by Survey tool in Arch/BIM_WB

Post by Roy_043 »

You have a set of Draft_Wires in a compound. To create a solid from that you need at least two steps. Note that for some reason (I assume inaccuracies) the technique does not work for your model.
  1. Create a shell from the faces with Part_Builder.
  2. Create a solid from the shell, again with Part_Builder
The question I am left with is why don't you model this by extruding Facciata002 and Pianta002 and then performing a Boolean operation? It would be much more efficient.
User avatar
ragohix769
Posts: 568
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

Re: Create a volume from shapes usable by Survey tool in Arch/BIM_WB

Post by ragohix769 »

Roy_043 wrote: Fri Mar 11, 2022 9:17 am You have a set of Draft_Wires in a compound. To create a solid from that you need at least two steps. Note that for some reason (I assume inaccuracies) the technique does not work for your model.
  1. Create a shell from the faces with Part_Builder.
  2. Create a solid from the shell, again with Part_Builder
I've done already this, but as you see without any success. So I think there is (as you noted correctly) some inaccuracies with some edges of the shell not coincidents that not closes the volume of the shell (I presume). Ok, that it's possible, but I have zero diagnostic or tool to find where is the problem and fix it, as I see. I think that is a problem beacuse If I have this kind of problems with a so simple shell, I can imagine what problem can be modelling complex things.
The question I am left with is why don't you model this by extruding Facciata002 and Pianta002 and then performing a Boolean operation? It would be much more efficient.
That is a good question, at the end I've done exactly that, using extrusion of the floorplan and cut with a shape/plane. Of course it not prone to this kind of errors, but I was trying to make an exercise to model creating only edges and then a shell from it, that with some complex things can be useful IMHO.

I've found too some bugs with create shape from planar edges, so at the end my workaround was to create a polyline with draft of the edges, then using draft_draf2sketch to this selection 2 times, to have a closed shape (rather then go to shape builder or making a draft_upgrade that does not work 99% of the times on creating shape from complex edges). Maybe I'll post this separetly


Thank you Roy :-)
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
User avatar
ragohix769
Posts: 568
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

Re: Create a volume from shapes usable by Survey tool in Arch/BIM_WB

Post by ragohix769 »

Roy_043 wrote: Fri Mar 11, 2022 9:17 am The question I am left with is why don't you model this by extruding Facciata002 and Pianta002 and then performing a Boolean operation? It would be much more efficient.
IYO what's the best boolean operation to cut this (the uploaded file at the end of this message) extruded solid of the floorplan whith the roof planar shape that I have merged?
I've tried to cut or intersect, but without success. Tried too with cut with plane, but I cannot understand the logic he says to me " You must select a face from the second object (cut plane), not the whole object", ok it's not a plane, but: can I make and easy boolean with these two entities?
Roy_043 wrote: Fri Mar 11, 2022 9:17 am You have a set of Draft_Wires in a compound. To create a solid from that you need at least two steps. Note that for some reason (I assume inaccuracies) the technique does not work for your model.
  1. Create a shell from the faces with Part_Builder.
  2. Create a solid from the shell, again with Part_Builder
The question I am left with is why don't you model this by extruding Facciata002 and Pianta002 and then performing a Boolean operation? It would be much more efficient.
Ok. It's there a method to create a shell->solid directlyin BIM/Draft/Arch without exit to Part_WB?
Attachments
create_volume_from_shape_v002.FCStd
(16.78 KiB) Downloaded 29 times
Last edited by ragohix769 on Sat Mar 12, 2022 1:29 am, edited 2 times in total.
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
paullee
Veteran
Posts: 5120
Joined: Wed May 04, 2016 3:58 pm

Re: Create a volume (shell) from shapes

Post by paullee »

It seems there are several ways to do it, not sure if this is what you want.

I try a few ways, but seem Part Boolean Cut does not like coplanar face as usually suggested by other users here. And the original 2 sloping faces of your roof has a tiny gap in-between... I draw a line by snapping to end points on both faces result in a very short edge.

Check the revised model and see if it helps you :)
create_volume_from_shape_v002_r.FCStd
(52.71 KiB) Downloaded 32 times

Screenshot from 2022-03-12 10-36-46.png
Screenshot from 2022-03-12 10-36-46.png (200.3 KiB) Viewed 1318 times
Screenshot from 2022-03-12 10-37-08.png
Screenshot from 2022-03-12 10-37-08.png (204.39 KiB) Viewed 1318 times
Screenshot from 2022-03-12 10-55-55.png
Screenshot from 2022-03-12 10-55-55.png (199.47 KiB) Viewed 1318 times
Screenshot from 2022-03-12 10-56-44.png
Screenshot from 2022-03-12 10-56-44.png (180.54 KiB) Viewed 1318 times
Screenshot from 2022-03-12 11-00-16.png
Screenshot from 2022-03-12 11-00-16.png (228.79 KiB) Viewed 1318 times
Screenshot from 2022-03-12 11-01-25.png
Screenshot from 2022-03-12 11-01-25.png (186.02 KiB) Viewed 1318 times
Screenshot from 2022-03-12 11-02-36.png
Screenshot from 2022-03-12 11-02-36.png (211.84 KiB) Viewed 1318 times
User avatar
Roy_043
Veteran
Posts: 8552
Joined: Thu Dec 27, 2018 12:28 pm

Re: Create a volume (shell) from shapes

Post by Roy_043 »

ragohix769 wrote: Sat Mar 12, 2022 12:42 am he says to me " You must select a face from the second object (cut plane), not the whole object"
This means you should select a face in the 3D view and not select the object in the Tree view. The Arch_CutPlane command works fine for your model. Extrude Pianta002 to +4000mm and use Tetto002 and Tetto_004 to cut off the excess.
User avatar
ragohix769
Posts: 568
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

Re: Create a volume (shell) from shapes

Post by ragohix769 »

Roy_043 wrote: Sat Mar 12, 2022 9:57 am
ragohix769 wrote: Sat Mar 12, 2022 12:42 am he says to me " You must select a face from the second object (cut plane), not the whole object"
This means you should select a face in the 3D view and not select the object in the Tree view. The Arch_CutPlane command works fine for your model. Extrude Pianta002 to +4000mm and use Tetto002 and Tetto_004 to cut off the excess.
I tried with the project here uploaded, cannot do that, he says to me always " You must select a face from the second object (cut plane), not the whole object". The second object it's already a face to me and I select it in the 3D view.

Code: Select all

OS: Ubuntu 20.04.4 LTS (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.
Build type: Release
Branch: unknown
Hash: bda12907dee4fe3f0e7dec8f7e09e098fc5036e4
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, OCC 7.5.2
Locale: Italian/Italy (it_IT)
Installed mods: 
  * BIM
Attachments
create_volume_from_shape_v003.FCStd
(13.23 KiB) Downloaded 20 times
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
User avatar
Roy_043
Veteran
Posts: 8552
Joined: Thu Dec 27, 2018 12:28 pm

Re: Create a volume (shell) from shapes

Post by Roy_043 »

Seems to work fine here.

Code: Select all

OS: Windows 8.1 (6.3)
Word size of FreeCAD: 64-bit
Version: 0.20.27809 (Git)
Build type: Release
Python 3.8.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: Dutch/Netherlands (nl_NL)
Installed mods: 
Attachments
create_volume_from_shape_v003.FCStd
(25.64 KiB) Downloaded 23 times
User avatar
ragohix769
Posts: 568
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

Re: Create a volume (shell) from shapes

Post by ragohix769 »

Roy_043 wrote: Sat Mar 12, 2022 12:41 pm Seems to work fine here.
Ok, finally I created the shell cutting it with https://wiki.freecadweb.org/Arch_CutPlane :-)

Now I understand the logic behind cutting plane tool in Arch; IMHO it's a little bit tricky to understand because my problem was that the solid covered the face that has (mandatory) to be selected on 3D view. Maybe a possible selection in the tree view (for simple plane 2d shapes like this) should be enabled.

Really thank you Roy :-)
Attachments
wepz.png
wepz.png (291.65 KiB) Viewed 1039 times
Last edited by ragohix769 on Sat Mar 12, 2022 5:50 pm, edited 2 times in total.
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
User avatar
ragohix769
Posts: 568
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

Re: Create a volume (shell) from shapes

Post by ragohix769 »

Another question, maybe it's useful for others too: I've, as said, intersected a solid extrued (form the floorplan) with planes (the roof), so now I have all the shapes without any error or hole non connected. Ok.

But now to create a shell and then a solid (my objective it's simply to measure the volume of this house to make some energy diagnostic), It's there a quicker method rather then go to Part_WB, select all faces manually, make a Shell, and then make it a solid?

In general: if you an house modelled with bim, how to can find fast and easily the total volume of the construction modelled (exterior walls)?
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
Post Reply