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). ------------- - Procedure - ------------- + Doing the full conversion to X3D and STL ++++++++++++++++++++++++++++++++++++++++++ 1. Install EYE: see http://eulersharp.sourceforge.net/INSTALL 2. Test run EYE and see that everything is installed correctly 3. See all possible EYE commands on http://eulersharp.sourceforge.net/README 4. open command line 5a. 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 5b. run "eye --nope --no-span FACTShousewalls.n3 RULESdefaultvaluesfindall.n3 RULESifctransformationmatrix.n3 RULESmatrix.n3 RULESx3dboxtostl.n3 --pass > output.n3" 6. see additional RDF statements at the end of the output.n3 file + Query for the X3D boxes that can be found in the IFC/RDF file +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Install EYE: see http://eulersharp.sourceforge.net/INSTALL 2. Test run EYE and see that everything is installed correctly 3. See all possible EYE commands on http://eulersharp.sourceforge.net/README 4. open command line 5a. 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" 5b. OR run "eye --nope --no-span FACTShousewalls.n3 RULESdefaultvaluesfindall.n3 RULESifctransformationmatrix.n3 RULESmatrix.n3 RULESx3dboxtostl.n3 --query query.n3 > queryoutput.n3" 6. find the retrieved RDF statements in the queryoutput.n3 file + Edit rules ++++++++++++ 1. open up the rule set files and/or the query file in any notepad application 2. start editing