mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 13:46:54 +00:00
template template template template template
This commit is contained in:
@@ -485,11 +485,11 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
|
|||||||
|
|
||||||
// Read precision for found representation's context
|
// Read precision for found representation's context
|
||||||
auto context = ifc_representation->ContextOfItems();
|
auto context = ifc_representation->ContextOfItems();
|
||||||
if (context->as<typename Schema::IfcGeometricRepresentationSubContext>()) {
|
if (context->template as<typename Schema::IfcGeometricRepresentationSubContext>()) {
|
||||||
context = context->as<typename Schema::IfcGeometricRepresentationSubContext>()->ParentContext();
|
context = context->template as<typename Schema::IfcGeometricRepresentationSubContext>()->ParentContext();
|
||||||
}
|
}
|
||||||
if (context->as<typename Schema::IfcGeometricRepresentationContext>() && context->as<typename Schema::IfcGeometricRepresentationContext>()->Precision()) {
|
if (context->template as<typename Schema::IfcGeometricRepresentationContext>() && context->template as<typename Schema::IfcGeometricRepresentationContext>()->Precision()) {
|
||||||
double p = *context->as<typename Schema::IfcGeometricRepresentationContext>()->Precision()
|
double p = *context->template as<typename Schema::IfcGeometricRepresentationContext>()->Precision()
|
||||||
* kernel.getValue(IfcGeom::Kernel::GV_PRECISION_FACTOR);
|
* kernel.getValue(IfcGeom::Kernel::GV_PRECISION_FACTOR);
|
||||||
p *= kernel.getValue(IfcGeom::Kernel::GV_LENGTH_UNIT);
|
p *= kernel.getValue(IfcGeom::Kernel::GV_LENGTH_UNIT);
|
||||||
if (p < 1.e-7) {
|
if (p < 1.e-7) {
|
||||||
|
|||||||
Reference in New Issue
Block a user