Partial geometrical conversion IFC -> X3D -> STL
Pieter Pauwels
30 October 2011
Files
-
FACTShousewalls.n3
This is an IFC/RDF file representing, among a couple of other things, wall objects following an extrudedareasolid representation. The IFC/RDF graph follows the IFCOWL ontology as it was developed in 2011 in Ghent University.
-
RULESdefaultvaluesfindall.n3
Rule set that sets default values for the IFCREFDIRECTION of objects.
-
RULESifctransformationmatrix.n3
Rule set that generates X3D boxes for extrudedareasolid objects and that calculates the required geometrical properties for these X3D boxes through the appropriate transformation matrices.
-
RULESmatrix.n3
Rule set that allows to perform matrix calculations.
-
RULESx3dboxtostl.n3
Rule set that allows to convert an X3D box into a triangulated STL mesh.
-
query.n3
Using this query file, the EYE reasoning engine is able to retrieve only the X3D boxes that were recognised within the IFC/RDF file (see procedure below).
-
output.n3
This is an example output file as it is produced by the EYE reasoning engine when doing the full conversion approach (see procedure below - 'doing the conversion').
-
queryoutput.n3
This is an example output file as it is produced by the EYE reasoning engine when doing the conversion by query approach (see procedure below - 'query conversion rules').
-
README.txt
Textual overview of this HTML page.
-
geometricalinferenceIFCtoX3DtoSTL_pieterpauwels.zip
Full ZIP file including all the files above.
Procedure
Doing the full conversion to X3D and STL
- Install EYE: see http://eulersharp.sourceforge.net/INSTALL
- Test run EYE and see that everything is installed correctly
- See all possible EYE commands on http://eulersharp.sourceforge.net/README
- open command line
-
- run "eye --nope --no-span http://eulersharp.sourceforge.net/2010/05smml/FACTShousewalls.n3 http://eulersharp.sourceforge.net/2010/05smml/RULESdefaultvaluesfindall.n3 http://eulersharp.sourceforge.net/2010/05smml/RULESifctransformationmatrix.n3 http://eulersharp.sourceforge.net/2010/05smml/RULESmatrix.n3 http://eulersharp.sourceforge.net/2010/05smml/RULESx3dboxtostl.n3 --pass > output.n3"
- OR run "eye --nope --no-span FACTShousewalls.n3 RULESdefaultvaluesfindall.n3 RULESifctransformationmatrix.n3 RULESmatrix.n3 RULESx3dboxtostl.n3 --pass > output.n3"
- see additional RDF statements at the end of the output.n3 file
Edit rules
- open up the rule set files and/or the query file in any notepad application
- start editing
Query for the X3D boxes that can be found in the IFC/RDF file
- Install EYE: see http://eulersharp.sourceforge.net/INSTALL
- Test run EYE and see that everything is installed correctly
- See all possible EYE commands on http://eulersharp.sourceforge.net/README
- open command line
-
- run "eye --nope --no-span http://eulersharp.sourceforge.net/2010/05smml/FACTShousewalls.n3 http://eulersharp.sourceforge.net/2010/05smml/RULESdefaultvaluesfindall.n3 http://eulersharp.sourceforge.net/2010/05smml/RULESifctransformationmatrix.n3 http://eulersharp.sourceforge.net/2010/05smml/RULESmatrix.n3 http://eulersharp.sourceforge.net/2010/05smml/RULESx3dboxtostl.n3 --query query.n3 > queryoutput.n3"
- OR run "eye --nope --no-span FACTShousewalls.n3 RULESdefaultvaluesfindall.n3 RULESifctransformationmatrix.n3 RULESmatrix.n3 RULESx3dboxtostl.n3 --query query.n3 > queryoutput.n3"
- find the retrieved RDF statements in the queryoutput.n3 file
Reference publication
Pieter Pauwels, Davy Van Deursen, Jos De Roo, Tim Van Ackere, Ronald De Meyer, Rik Van de Walle and Jan Van Campenhout. Three-dimensional information exchange over the semantic web for the domain of architecture, engineering, and construction AI EDAM - ARTIFICIAL INTELLIGENCE FOR ENGINEERING DESIGN ANALYSIS AND MANUFACTURING. 25(4) (2011). p.317-332.