MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0031961Community[OCCT] OCCT:Modeling Algorithmspublic2020-11-25 16:052020-12-11 12:12
ReporterVladyslav Smorodskyi 
Assigned Tobugmaster 
PrioritynormalSeveritymajor 
StatusclosedResolutionno change required 
PlatformWindowsOSWindowsOS Version10
Product Version[OCCT] 7.5.0 
Target VersionFixed in Version 
Summary0031961: Invalid bounding box produced for Face when triangulation is disabled
DescriptionBounding box calculation algorithm for faces produces wrong results when triangulation is turned off. Notice that in attached picture bounding box that uses triangulation is valid(Yellow), but one without triangulation is invalid(Blue).

Tested in OCCT 7.3.0 and 7.5.0
Steps To ReproduceUse attached file and execute next DRAW code

restore face.brep a
vdisplay a

bounding a -shape b1
vdisplay b1

bounding a -shape b2 -notriangulation
vdisplay b2

vfit
TagsNo tags attached.
Test case number
Attached Files? file icon face.brep (11,806 bytes) 2020-11-25 16:05
png file icon bbox_dump.png (4,998 bytes) 2020-11-25 16:05

- Relationships

-  Notes
(0097074)
msv (developer)
2020-11-25 16:32

It is not a bug.
Bounding box is not necessary close to the object. This box is computed on the poles of b-spline surface, in order to be computed very quick. If you want to compute the tight box then you need to use -optimal option.
(0097078)
Vladyslav Smorodskyi (reporter)
2020-11-25 20:52

Thanks for pointing at optimal flag. At first glance BRepBndLib::Add seems same as BRepBndLib::AddOptimal, especially when triangulation is turned off, this adds a bit of confusion.

Issue can be closed.

- Issue History
Date Modified Username Field Change
2020-11-25 16:05 Vladyslav Smorodskyi New Issue
2020-11-25 16:05 Vladyslav Smorodskyi Assigned To => msv
2020-11-25 16:05 Vladyslav Smorodskyi File Added: face.brep
2020-11-25 16:05 Vladyslav Smorodskyi File Added: bbox_dump.png
2020-11-25 16:32 msv Note Added: 0097074
2020-11-25 16:32 msv Assigned To msv => Vladyslav Smorodskyi
2020-11-25 16:32 msv Status new => feedback
2020-11-25 20:52 Vladyslav Smorodskyi Note Added: 0097078
2020-11-25 20:52 Vladyslav Smorodskyi Assigned To Vladyslav Smorodskyi => msv
2020-11-25 23:16 msv Assigned To msv => bugmaster
2020-11-25 23:16 msv Resolution open => no change required
2020-12-02 15:09 kgv Relationship added related to 0027352
2020-12-11 12:12 bugmaster Status feedback => closed


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker