View Issue Details

IDProjectCategoryView StatusLast Update
0021707Open CASCADEOCCT:Application Frameworkpublic2013-04-29 15:24
ReporterszyAssigned Tobugmaster  
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
OSAll 
Target Version6.6.0Fixed in Version6.6.0 
Summary0021707: Selection of Vertex returns Compound of vertexes
DescriptionSelection of the vertex (see colored in red Vertexes at the attached picture
t152.png) returns compound of Vertexes. At the moment it is algorithm
limitation. At the first step a technical solution for the problem is expected.
After that - implementation.
Script to reproduce the problem.
================================
NewDocument D MDTV-Standard
isos 12
0000001 - create 4 Pnts
NewCommand D
AddDriver D PntXYZ PntRLT Line3D Attach;
set Pnt1 [AddPoint D 0 0 0]; ## add point1
ComputeFun D $Pnt1:1; ## compute function
GetShape D $Pnt1:1:2 P1; ## check result

set Pnt2 [AddPoint D 0 200 0];
ComputeFun D $Pnt2:1;
set Pnt3 [AddPoint D 200 200 0];
ComputeFun D $Pnt3:1;
set Pnt4 [AddPoint D 200 0 0];
ComputeFun D $Pnt4:1;
GetShape D $Pnt2:1:2 P2;
GetShape D $Pnt3:1:2 P3;
GetShape D $Pnt4:1:2 P4;

0000002 create open Lin1
#NewCommand D
#set Lin1 [ AddLine3D D 0 $Pnt1 $Pnt2 $Pnt3 $Pnt4]
#ComputeFun D $Lin1:1;
#GetShape D $Lin1:1:2 L1;

#3 create closed Lin3
NewCommand D
set Lin2 [ AddLine3D D 1 $Pnt1 $Pnt2 $Pnt3 $Pnt4]
ComputeFun D $Lin2:1;
GetShape D $Lin2:1:2 L1;

#4 Prism
NewCommand D
AddDriver D Prism Box PTxyz
set Prism [AddPrism D $Lin2 300 0]
ComputeFun D $Prism:1
GetShape D $Prism:1:2 Pr

#5 Add Box
NewCommand D
set B1 [AddBox D 400 140 600];
ComputeFun D $B1:1;
GetShape D $B1:1:2 Box;

#6 Translate Box1
NewCommand D
set FTr1 [PTranslateDXYZ D $B1 -100 -20 -100]
ComputeFun D $FTr1
GetShape D $B1:2:2 Box

0000007 add Common
NewCommand D
AddDriver D Comm Cut Fuse
set Com1 [AddCommon D $Prism $B1]
ComputeFun D $Com1
GetShape D $Com1:2 Pr

0000008 add Cylinder
NewCommand D
explode Pr E
AddDriver D Attach Cyl
set Sel1 [AttachShape D Pr_5 ${Prism} ${Prism} 0]; ## set attachment
set Cyl [AddCyl D 70 515 ${Sel1}]
ComputeFun D $Cyl:1
GetShape D $Cyl:1:2 CylS

0000009 Translate Cylinder
NewCommand D
set FTr1 [PTranslateDXYZ D $Cyl -100 200 170]
ComputeFun D $FTr1
GetShape D $Cyl:2:2 CylS

#10 Cut Prism by Cylinder
set Cut1 [AddCut D $Prism $Cyl]
ComputeFun D $Cut1
GetShape D $Cut1:2 Pr
don Pr
explode Pr V
don Pr
set Sel8 [AttachShape D Pr_8 ${Prism} ${Prism} 0]
set Sel11 [AttachShape D Pr_11 ${Prism} ${Prism} 0];
TagsNo tags attached.
Test case numberbugs caf bug21707

Attached Files

  • t152.PNG (28,702 bytes)
  • bug21707 (1,791 bytes)

Relationships

related to 0021673 closedszy Selection of Edge gives compound of edges 

Activities

2010-04-21 15:41

 

t152.PNG (28,702 bytes)

szy

2012-10-30 17:24

manager   ~0022018

The problem can't be reproduced in current environment (OCCT653) because of changes at algorithm level. The specified vertexes (see the picture) disappeared in resulting shape (no split edge more) and as result can't be selected.

bugmaster

2012-12-26 14:31

administrator   ~0022851

Please create testing case

apn

2013-03-15 12:18

administrator   ~0023741

Last edited: 2013-03-15 12:19

I get an exception using script to reproduce the problem.
Last block of script:
     
###Cut Prism by Cylinder
Draw> set Cut1 [AddCut D $Prism $Cyl]
Draw> ComputeFun D $Cut1
Draw> GetShape D $Cut1:2 Pr
DDataStd_GetShape : Error

Draw> puts $Cut1
0:1:6:3

Draw> DFBrowse D

There is an attribute TNaming_NamedShape on label "0:1:6:3:2 Result" in DFBrowser. But trying to use "GetShape D $Cut1:2 Pr" we get error.

szy

2013-03-25 17:49

manager   ~0023885

The problem is reproducible only on development version.
Because of changes at modeling algorithm level order of exploration changed.
Therefore testing script should be corrected a little bit in next way:


0000008 add Cylinder
...
set Sel1 [AttachShape D Pr_6 ${Prism} ${Prism} 0]; ## set attachment Pr_6!!!

0000010 Cut Prism by Cylinder
...
set Sel11 [AttachShape D Pr_10 ${Prism} ${Prism} 0]; ## Pr_10 !!!

szy

2013-03-25 17:50

manager   ~0023886

Reviewed.
Test it, please using the modified script.
szy

apn

2013-03-25 19:49

administrator   ~0023888

I created branch CR21707 from current state of master and push to it test case bugs/caf/bug21707. There is a check of number of vertexes.
Can you review this test case? Script is attached.

apn

2013-03-25 19:50

administrator  

bug21707 (1,791 bytes)

szy

2013-03-26 10:32

manager   ~0023892

The script is reviewed and tested.
It is OK. You can integrate it.
szy

Related Changesets

occt: master b92d758f

2013-03-25 15:45:06

apn


Committer: bugmaster Details Diff
0021707: Selection of Vertex returns Compound of vertexes

Added test case bugs/caf/bug21707
Affected Issues
0021707
add - tests/bugs/caf/bug21707 Diff File

Issue History

Date Modified Username Field Change
2010-04-21 15:51 szy OtherBugsDependingOnThis => 21673
2010-05-13 16:19 bugmaster Assigned To bugmaster => szy
2010-05-13 16:19 bugmaster Status new => assigned
2011-08-02 10:32 bugmaster Category OCCT:OCAF => OCCT:Application Framework
2012-10-24 10:23 szy Fixed in Version EMPTY =>
2012-10-24 10:23 szy Target Version => 6.6.0
2012-10-24 10:23 szy Description Updated
2012-10-30 17:24 szy Note Added: 0022018
2012-10-30 17:24 szy Status assigned => resolved
2012-10-30 17:24 szy Status resolved => reviewed
2012-10-30 17:26 szy Assigned To szy => bugmaster
2012-10-30 17:26 szy Resolution open => unable to reproduce
2012-12-26 14:31 bugmaster Note Added: 0022851
2012-12-26 14:31 bugmaster Assigned To bugmaster => mkv
2012-12-26 14:31 bugmaster Status reviewed => assigned
2013-02-26 15:48 abv Status assigned => feedback
2013-03-15 12:18 apn Note Added: 0023741
2013-03-15 12:19 apn Note Edited: 0023741
2013-03-15 12:20 apn Assigned To mkv => szy
2013-03-15 12:20 apn Status feedback => assigned
2013-03-25 17:49 szy Note Added: 0023885
2013-03-25 17:49 szy Status assigned => resolved
2013-03-25 17:50 szy Note Added: 0023886
2013-03-25 17:50 szy Assigned To szy => apn
2013-03-25 17:50 szy Status resolved => reviewed
2013-03-25 18:06 mkv Assigned To apn => mkv
2013-03-25 19:04 mkv Assigned To mkv => apn
2013-03-25 19:05 apn Status reviewed => feedback
2013-03-25 19:49 apn Note Added: 0023888
2013-03-25 19:50 apn File Added: bug21707
2013-03-25 19:50 apn Test case number => bugs caf bug21707
2013-03-25 19:50 apn Assigned To apn => szy
2013-03-25 19:50 apn Status feedback => assigned
2013-03-26 10:32 szy Note Added: 0023892
2013-03-26 10:32 szy Status assigned => feedback
2013-03-26 10:34 szy Assigned To szy => apn
2013-03-26 10:34 szy Status feedback => reviewed
2013-03-26 10:34 apn Assigned To apn => bugmaster
2013-03-26 10:34 apn Status reviewed => tested
2013-04-01 17:37 bugmaster Changeset attached => occt master b92d758f
2013-04-01 17:37 bugmaster Status tested => verified
2013-04-01 17:37 bugmaster Resolution unable to reproduce => fixed
2013-04-23 13:35 aiv Status verified => closed
2013-04-29 15:24 aiv Fixed in Version => 6.6.0