IFC Viewer ifcplusplus

This forum section is only for IFC-related issues
Post Reply
fabian
Posts: 1
Joined: Wed Apr 16, 2014 12:35 pm

Re: IFC Viewer ifcplusplus

Post by fabian »

The normal vector of a face bound (IfcFaceBound) follows the "right hand rule".
That means, if the points are in counter-clockwise order, the normal vector points up.

If the attribute "Orientation" in IfcFaceBound is FALSE, the "left-hand-rule" is applied instead, so the face is flipped.

In a closed polyhedron (or closed mesh), all normal vectors point outward.

You can see the winding order here (also for openings): http://www.buildingsmart-tech.org/ifc/I ... edbrep.htm
User avatar
yorik
Founder
Posts: 13664
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: IFC Viewer ifcplusplus

Post by yorik »

Ah that must be it. Thanks a lot!!
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

Fabian, welcome to FreeCAD community :) and thanks for specify the problem.

BTW: Fabian is the maintainer of ifcplusplus library.
User avatar
yorik
Founder
Posts: 13664
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: IFC Viewer ifcplusplus

Post by yorik »

Oh, great! Nice to meet you Fabian, thanks for making that app, it's a great asset and the first solid IFC viewer for linux, thanks to Bernd too!
User avatar
yorik
Founder
Posts: 13664
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: IFC Viewer ifcplusplus

Post by yorik »

Victory!!!
screenshot.jpg
screenshot.jpg (79.71 KiB) Viewed 3574 times
That was it indeed. Thanks for the help Fabian!
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

yorik wrote:Ah I managed to compile. There was a caps problem, when it tries to link to the carve lib, it uses -lcarve (which looks for a libcarve.a or libcarve.so file) but the compiled carve lib is Release/libCarve.so (big C). So I did a simlink named libcarve.so in the same folder and things worked.
Thanks for the information. My fault, external Carve uses a smal "c" for the library name internal Carve uses a big "C". I mixed it up. Wonder why it worked for me. Changed all CMakelists.txt to small "c" for internal Carve as well.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

May be somwone has tried the file parking-halfspace.ifc I posted in the halfspace forum here http://www.forum.freecadweb.org/viewtop ... =20#p51685 in Ifc++ and found like me Ifc++ has Problems to display.

Thanks to the fast respond of Fabian the bug is allready fixed in windows build of Ifc++ on google code. Since my linuxbuild depends on the MacOSX build of Vtreem on github it seams we need to wait a bit.

I should find a possibility to directly use the Code of Fabian. A start would be to import his snvrepo to git using git-snv. Does someone know a good resource how to do that?
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: IFC Viewer ifcplusplus

Post by jmaustpc »

bernd wrote:A start would be to import his snvrepo to git using git-snv. Does someone know a good resource how to do that?
Hi Bernd,
When I first read that I thought Git can read svn but I see we have to install another package "git-svn" to make it work in Debian/Ubuntu etc.....Now re-reading your post, I think you knew that already... :-)

Here is a link that might help...its a quick run through on integrating SVN and git.

http://viget.com/extend/effectively-usi ... subversion

Jim
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

jmaustpc wrote:... Here is a link that might help...its a quick run through on integrating SVN and git...
Thanks Jim :)

Find R42 of IFCPlusPlus for Linux on https://github.com/berndhahnebach/IfcPlusPlus

Changes:
- It is based on R42 of Fabian Gerold which fixes the halfspace bug
- parking-halfspace.ifc from viewtopic.php?f=8&t=6371&hilit=halfspac ... =20#p51685 is displayed the way it should be
- The repo is no longer a clone from vtreems repo. It now depends directly on Fabian Gerolds repo. Thus it is a new Repo.
- The old repo has been moved to IFCPlusPlus-Vtreem

Info:
- The internal Carve is used
- Cmake still needs the path of internal Carve. See README
User avatar
yorik
Founder
Posts: 13664
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: IFC Viewer ifcplusplus

Post by yorik »

Great! Ah, I solved the problem of the horizontal extrusions. The problem was that all 2D profiles in IFC must lie on the XY plane. Then, you can apply a placement to it to rotate it to the correct position, but it must first be defined on the XY plane, I wasn't aware of that...

I'm starting a new testfile here, which now uses the units system: https://dl.dropboxusercontent.com/u/754 ... use2.fcstd
And the corresponding ifc file: https://dl.dropboxusercontent.com/u/754 ... house2.ifc

The horizontal extrusions now work correctly in all apps I tested (Ifc++, Revit, ArchiCAD), but the circular columns still don't work in Revit (But well in the others, though). Still some detail I'm missing probably.
Post Reply