DiscussionsIssue archiveOCCT:Visualization

Archived issue #0025341

Visualization - disallow displaying object as part of connected one and as a free one at the same time

Open CASCADEOCCT:Visualizationclosed9 public notes

Search issues

Description

When using some connection fucntionality objects may dissapear after enabling the texture.

Steps to reproduce

Minimal test case:
pload MODELING VISUALIZATION
vinit
box b 1.0 1.0 1.0
psphere s 0.5
vdisplay b s

vconnect bs    2 0 0 b s
vconnect bsc   6 0 0 bs
vconnect bscc 10 0 0 bsc
vfit

vremove b

Erasing of original interactive object results to low-level structures to point dead pointers.

Original test case:
pload ALL
vinit
box b 1 1 1
psphere s 0.5
vdisplay b s
vsetlocation s 0 2.5 0
box d 0.5 0.5 3
box d2 0.5 3 0.5
vdisplay d d2

vfit
vconnectto b1 -2 0 0 b
vconnect z 2 0 0 b s
vconnect z2 4 0 0 d d2
vconnect z3 6 0 0 z z2
vconnect z4 10 0 0 z3 z2
vfit
vaddc z4 0 4 0 s
vsetdispmode 1
vtexture b 5

Public activity

9 archived notes

Participants are labeled by their role within this record.

01Commenter 3
Technically this is not allowed combination displaying object as connected and as not connected at the same time. But it would be good to have some protection against this situation.
02Commenter 2
Problem described in issue is reproduced on current state of OCCT.
03Commenter 4
Branch [archived branch] has been created by Commenter 3.

[revision removed]


Detailed log of new commits:

Author: Commenter 3
Date: Sat Sep 28 13:36:24 2019 +0300

    0025341: Visualization - disallow displaying object as part of connected one and as a free one at the same time
    
    AIS_ConnectedInteractive::connect() now throws exception on connecting already displayed object.
    
    Commands vconnect, vconnectto and vaddconnected have been corrected to
    replace dispalyed AIS_Shape with AIS_ConnectedInteractive in context.
04Commenter 4
Branch [archived branch] has been updated forcibly by Commenter 3.

[revision removed]
05Commenter 4
Branch [archived branch] has been updated forcibly by Commenter 3.

[revision removed]
06Commenter 3
07Commenter 7
Branch CR25341 reviewed without remarks.
08Commenter 1
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 16720.70000000006 / 16808.79000000008 [-0.52%]
Products
Total CPU difference: 10565.860000000032 / 10573.91000000004 [-0.08%]
Windows-64-VC14:
OCCT
Total CPU difference: 18248.828125 / 18298.78125 [-0.27%]
Products
Total CPU difference: 12479.015625 / 12507.671875 [-0.23%]

Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
09Commenter 4
Branch [archived branch] has been deleted by Commenter 3.

[revision removed]

Related records