We need to export a model to IFC2x3 (and IFC4) that specifies a different color for every IfcFace of an IfcFacetedBREP. I’ve tried doing it like this (below), but I can’t find a single IFC viewer that will import these colors. Is there a better way to create such colorful BREP solids?
#183688=IFCFACETEDBREP(#183687);
. #183687=IFCCLOSEDSHELL((#379103…);
. . #379103=IFCFACE((#379102));
. . . #379102=IFCFACEOUTERBOUND(#379101,.T.);
. . . . #379101=IFCPOLYLOOP((#329731,#329732,#329733,#329734));
. . . . . #329731=IFCCARTESIANPOINT((28.9,-46.3,136.8));
. . . . . #329732=IFCCARTESIANPOINT((27.4,-50.5,111.1));
. . . . . #329733=IFCCARTESIANPOINT((26.8,-52.3,111.4));
. . . . . #329734=IFCCARTESIANPOINT((28.8,-46.7,136.9));
. . . #379108=IFCSTYLEDITEM(#379103,(#379107),$);
. . . . #379107=IFCPRESENTATIONSTYLEASSIGNMENT((#379106));
. . . . . #379106=IFCSURFACESTYLE(‘Color’,.BOTH.,(#379105));
. . . . . . #379105=IFCSURFACESTYLERENDERING(#379104,$,$,$,$,$,$,$,.MATT.);
. . . . . . . #379104=IFCCOLOURRGB($,0.6,0.7,0.8);