typename typename typename typename typename typename

This commit is contained in:
Thomas Krijnen
2022-06-10 11:07:40 +02:00
parent 0a30d1a438
commit f1e3d9c573
+4 -4
View File
@@ -485,11 +485,11 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
// Read precision for found representation's context
auto context = ifc_representation->ContextOfItems();
if (context->as<Schema::IfcGeometricRepresentationSubContext>()) {
context = context->as<Schema::IfcGeometricRepresentationSubContext>()->ParentContext();
if (context->as<typename Schema::IfcGeometricRepresentationSubContext>()) {
context = context->as<typename Schema::IfcGeometricRepresentationSubContext>()->ParentContext();
}
if (context->as<Schema::IfcGeometricRepresentationContext>() && context->as<Schema::IfcGeometricRepresentationContext>()->Precision()) {
double p = *context->as<Schema::IfcGeometricRepresentationContext>()->Precision()
if (context->as<typename Schema::IfcGeometricRepresentationContext>() && context->as<typename Schema::IfcGeometricRepresentationContext>()->Precision()) {
double p = *context->as<typename Schema::IfcGeometricRepresentationContext>()->Precision()
* kernel.getValue(IfcGeom::Kernel::GV_PRECISION_FACTOR);
p *= kernel.getValue(IfcGeom::Kernel::GV_LENGTH_UNIT);
if (p < 1.e-7) {