| 459 | } |
| 460 | |
| 461 | int main() |
| 462 | { |
| 463 | std::cout << "Hello web IFC test!" << std::endl; |
| 464 | |
| 465 | // TestTriangleDecompose(); |
| 466 | |
| 467 | // return 0; |
| 468 | |
| 469 | // Benchmark(); |
| 470 | |
| 471 | // return 0; |
| 472 | |
| 473 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/VEC-IFC-INST-totaal-20130726.ifc"); |
| 474 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/15.ifc"); |
| 475 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/F_MA_160_ALT3.ifc"); |
| 476 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/1256.ifc"); |
| 477 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/540.ifc"); |
| 478 | std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/1092_A.ifc"); |
| 479 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/Sample3_ArchiCAD25.ifc"); |
| 480 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/384.ifc"); |
| 481 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/Spacewell_Wall.ifc"); |
| 482 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/1450.ifc"); |
| 483 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/15.ifc"); |
| 484 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/1544.ifc"); |
| 485 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/800087_5217721a.ifc"); |
| 486 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/818.ifc"); |
| 487 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/bc-78.ifc"); |
| 488 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/83.ifc"); |
| 489 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/1506.ifc"); |
| 490 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/TAR_E1A_LA_RVT_0001.ifc"); |
| 491 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/1665.ifc"); |
| 492 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/1677 (2).ifc"); |
| 493 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/1604.ifc"); |
| 494 | // std::string content = ReadFile("C:/Users/qmoya/Desktop/MODELS/fragments_89.ifc"); |
| 495 | |
| 496 | struct LoaderSettings |
| 497 | { |
| 498 | bool COORDINATE_TO_ORIGIN = false; |
| 499 | uint16_t CIRCLE_SEGMENTS = 12; |
| 500 | uint32_t TAPE_SIZE = 67108864; // probably no need for anyone other than web-ifc devs to change this |
| 501 | uint32_t MEMORY_LIMIT = 2147483648; |
| 502 | uint16_t LINEWRITER_BUFFER = 10000; |
| 503 | double TOLERANCE_PLANE_INTERSECTION = 1.0E-01; |
| 504 | double TOLERANCE_PLANE_DEVIATION = 3.0E-04; |
| 505 | double TOLERANCE_BACK_DEVIATION_DISTANCE = 3.0E-04; |
| 506 | double TOLERANCE_INSIDE_OUTSIDE_PERIMETER = 1.0E-10; |
| 507 | double TOLERANCE_SCALAR_EQUALITY = 1.0E-04; |
| 508 | uint16_t PLANE_REFIT_ITERATIONS = 10; |
| 509 | uint16_t BOOLEAN_UNION_THRESHOLD = 150; |
| 510 | }; |
| 511 | |
| 512 | LoaderSettings set; |
| 513 | set.COORDINATE_TO_ORIGIN = true; |
| 514 | |
| 515 | webifc::schema::IfcSchemaManager schemaManager; |
| 516 | webifc::parsing::IfcLoader loader(set.TAPE_SIZE, set.MEMORY_LIMIT, set.LINEWRITER_BUFFER, schemaManager); |
| 517 | |
| 518 | auto start = ms(); |
nothing calls this directly
no test coverage detected