mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-30 17:42:13 -06:00
Fix display of intersection lines in 3D view
* 10675 Fix missing intersection line geometry * Change to list of visible surface intersection lines * Enable surface intersection band for any intersection * Show labels for intersection curves in 3D The polylines are defined in the display coordinate system without Z-scaling. The z-scaling is applied to the visualization parts using Part::setTransform(Transform* transform) The annotation objects are defined by display coordinates, so apply the Z-scaling to the coordinates. * Improve naming of surfaces * Use scaling factor of 1.0 for flat intersection views
This commit is contained in:
1 parent
21843820e6
commit
10189da362
16 files changed
+130
-64
No files matched your search
@@ -242,11 +242,13 @@ auto createMultipleLabels = []( const cvf::Camera* camera,
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivAnnotationTools::addAnnotationLabels( const cvf::Collection<cvf::Part>& partCollection,
|
||||
const cvf::Camera* camera,
|
||||
cvf::ModelBasicList* model )
|
||||
cvf::ModelBasicList* model,
|
||||
bool computeScalingFactor )
|
||||
{
|
||||
if ( !camera || !model ) return;
|
||||
|
||||
const double anchorLineScalingFactor = computeScalingFactorFromZoom( camera );
|
||||
// The scaling factor is computed using the camera, and this does not work for the flat intersection view
|
||||
const double anchorLineScalingFactor = computeScalingFactor ? computeScalingFactorFromZoom( camera ) : 1.0;
|
||||
|
||||
for ( auto p : partCollection )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user