DiscussionsIssue archiveOCCT:Modeling Data

Archived issue #0033049

Command 'tclean -geom' does not remove all geometric objects from the shape

Open CASCADEOCCT:Modeling Dataclosed3 public notes

Search issues

Description

Removing geometry with command 'tclean -geom s' does not work. It keeps some surfaces and 2D curves in the shape. Probably, these shapes are kept because of location applied.

The problem has been found during debugging of #0032716.

Steps to reproduce

psphere s1 10
pcylinder s2 8 20
pcone s3 10 8 5
ttranslate s1 0 0 25
ttranslate s3 0 0 -5

baddobjects s1
baddtools s2 s3
bfillds
bbop s fuse

incmesh s 0.1
tclean -geom s

regexp {Dump of ([0-9+-]*) Curve2ds.*Dump of ([0-9+-]*) Curves.*Dump of ([0-9+-]*) surfaces} [dump s] full nbC2d nbC3d nbSurf
if {$nbC2d != 0 || $nbC3d != 0 || $nbSurf != 0} {
  puts "Error: geometry is not fully removed"
} else {
  puts "OK: shape has no geometry"
}

Public activity

3 archived notes

Participants are labeled by their role within this record.

01Commenter 1
Please, review OCCT branch CR32716_2.
Test results: http://jenkins-test-occt/view/CR32716_2-master-AZV/view/COMPARE/
02Commenter 2
For integration:
occt - CR32716_3
products - none
03Commenter 3
Combination -
OCCT branch : [archived branch]
master SHA - changes and them, and you can discard any commits you make in this
[revision removed]
changes and them, and you can discard any commits you make in this
[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: 18685.930000000586 / 18908.870000000694 [-1.18%]
Products
Total CPU difference: 11796.890000000125 / 11832.130000000114 [-0.30%]
Windows-64-VC14:
OCCT
Total CPU difference: 20784.828125 / 20752.59375 [+0.16%]
Products
Total CPU difference: 13361.3125 / 13368.90625 [-0.06%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention

Related records