IFC Viewer ifcplusplus
Re: IFC Viewer ifcplusplus
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
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
Re: IFC Viewer ifcplusplus
Ah that must be it. Thanks a lot!!
Re: IFC Viewer ifcplusplus
Fabian, welcome to FreeCAD community and thanks for specify the problem.
BTW: Fabian is the maintainer of ifcplusplus library.
BTW: Fabian is the maintainer of ifcplusplus library.
Re: IFC Viewer ifcplusplus
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!
Re: IFC Viewer ifcplusplus
Victory!!!
That was it indeed. Thanks for the help Fabian!
That was it indeed. Thanks for the help Fabian!
Re: IFC Viewer ifcplusplus
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.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.
Re: IFC Viewer ifcplusplus
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?
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?
Re: IFC Viewer ifcplusplus
Hi Bernd,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?
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
Re: IFC Viewer ifcplusplus
Thanks Jimjmaustpc wrote:... Here is a link that might help...its a quick run through on integrating SVN and git...
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
Re: IFC Viewer ifcplusplus
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.
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.