mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
Update bounding box of parts in polyline part manager
The part visualization was missing in some cases due to an invalid bounding box
This commit is contained in:
1 parent
dc1e675b37
commit
573a8f78cf
1 file changed
+2
@@ -107,6 +107,7 @@ void RivPolylinePartMgr::buildPolylineParts( const caf::DisplayCoordTransform* d
|
||||
cvf::ref<cvf::Part> part = new cvf::Part;
|
||||
part->setName( "RivPolylinePartMgr" );
|
||||
part->setDrawable( drawableGeo.p() );
|
||||
part->updateBoundingBox();
|
||||
|
||||
caf::MeshEffectGenerator effgen( polylineDef->lineColor() );
|
||||
effgen.setLineWidth( polylineDef->lineThickness() );
|
||||
@@ -177,6 +178,7 @@ void RivPolylinePartMgr::buildPolylineParts( const caf::DisplayCoordTransform* d
|
||||
cvf::ref<cvf::Part> part = new cvf::Part;
|
||||
part->setName( "RivPolylinePartMgr" );
|
||||
part->setDrawable( vectorDrawable.p() );
|
||||
part->updateBoundingBox();
|
||||
|
||||
part->setEffect( new cvf::Effect() );
|
||||
part->setPriority( RivPartPriority::PartType::MeshLines );
|
||||
|
||||
Reference in new issue
Block a user