View Issue Details

IDProjectCategoryView StatusLast Update
0024051CommunityOCCT:Visualizationpublic2015-11-17 17:40
ReporterPawel Assigned Tobugmaster  
PrioritylowSeverityminor 
Status closedResolutionno change required 
PlatformWindowsOSVC++ 2008 
Product Version6.6.0 
Target Version7.0.0 
Summary0024051: Voxel_FastConverter::Convert / ConvertUsingSAT - problems in multithreaded scenario (2)
DescriptionI observe strange behaviour when converting a shape using Voxel_FastConverter. For some shapes and on some occasions (multi-threaded conversion to voxels but not every time though) I get the voxels as on attached pictures (problem can be seen on the vertical face).

Could this loop in Voxel_FastConverter::Convert:

TopExp_Explorer expl(myShape, TopAbs_FACE);
  for (; expl.More(); expl.Next())

cause the problem?
Steps To ReproduceTopoDS_Shape shape = BRepPrimAPI_MakeBox(gp_Pnt(5, 10, 10), 10, 20, 30);

Standard_Integer nbx = 200, nby = 200, nbz = 200;
Voxel_BoolDS theVoxels(-50,-50,-30, 100, 100, 100, nbx, nby, nbz);
Voxel_BoolDS theVoxels1(-50,-50,-30, 100, 100, 100, nbx, nby, nbz);
Standard_Integer nbThreads = 5;
Voxel_PreciseConverter fcp(shape, theVoxels, deflection, nbx, nby, nbz, nbThreads, Standard_True);

#pragma omp parallel for
        for(int i = 0; i < nbThreads; i++)
            fcp.ConvertUsingSAT(progress, i+1);
TagsNo tags attached.
Test case numberbugs vis bug24051

Attached Files

  • multithreaded_Conversion.png (18,315 bytes)
  • singlethreaded_Conversion.png (9,827 bytes)

Relationships

related to 0026765 closedbugmaster Open CASCADE Visualization - drop TKVoxel toolkit 

Activities

Pawel

2013-06-27 20:49

developer  

multithreaded_Conversion.png (18,315 bytes)

Pawel

2013-06-27 20:49

developer  

singlethreaded_Conversion.png (9,827 bytes)

bugmaster

2014-01-29 16:44

administrator   ~0027691

To reproduce problem creation of testing case is required

apn

2014-02-13 13:23

administrator   ~0027887

QA command OCC24051 and test case bugs/vis/bug24051 were added to master.

kgv

2015-11-17 16:18

developer   ~0048295

Dear bugmaster,

please close the issue as no more applicable since 0026765.

Issue History

Date Modified Username Field Change
2013-06-27 20:49 Pawel New Issue
2013-06-27 20:49 Pawel Assigned To => san
2013-06-27 20:49 Pawel File Added: multithreaded_Conversion.png
2013-06-27 20:49 Pawel File Added: singlethreaded_Conversion.png
2013-06-27 20:51 Pawel Steps to Reproduce Updated
2013-06-27 20:52 Pawel Description Updated
2014-01-29 16:44 bugmaster Note Added: 0027691
2014-01-29 16:44 bugmaster Assigned To san => apn
2014-01-29 16:44 bugmaster Status new => assigned
2014-02-13 13:23 apn Note Added: 0027887
2014-02-13 13:23 apn Test case number => bugs vis bug24051
2014-02-13 13:23 apn Assigned To apn => san
2014-02-17 16:29 kgv Assigned To san => vro
2014-02-17 16:29 kgv Priority normal => low
2015-11-17 16:18 kgv Relationship added related to 0026765
2015-11-17 16:18 kgv Note Added: 0048295
2015-11-17 16:18 kgv Assigned To vro => bugmaster
2015-11-17 16:18 kgv Status assigned => feedback
2015-11-17 16:18 kgv Resolution open => no change required
2015-11-17 16:18 kgv Target Version => 7.0.0
2015-11-17 17:40 bugmaster Status feedback => closed