View Issue Details

IDProjectCategoryView StatusLast Update
0032960CommunityOCCT:Modeling Algorithmspublic2022-05-04 16:42
ReporterEugeneZ Assigned Toazv  
Status newResolutionopen 
PlatformLinuxOSUbuntu 20.04 
Product Version7.6.0 
Summary0032960: Wrong result of BRepExtrema_DistShapeShape after translation
DescriptionBefore translation of both solids on some same vector, the distance between these solids was calculated as 1mm. After translation algorithm calculates near 0.0 (1.20943e-14). And if we get points dist.PointOnShape1(i) and dist.PointOnShape2(i) it will provide completely wrong positions.

Original discussion on forum
Steps To Reproducerestore TwoSolids2.brep a
explode a
distmini d a_1 a_2
dval d_val
whatis d

It tells that d is a vertex because the distance is zero. The right type is the edge with length equal to 1 mm.
TagsNo tags attached.
Test case number

Attached Files

  • TwoSolids2.brep (246,233 bytes)



2022-05-04 16:14

developer   ~0108317

@EugeneZ please attach the file.


2022-05-04 16:31

reporter   ~0108318

The file.
TwoSolids2.brep (246,233 bytes)


2022-05-04 16:32

reporter   ~0108319

But original file was attached to ticket.


2022-05-04 16:37

developer   ~0108320

I confirm that we have a problem with DistShapeShape algorithm. If we remove location of shapes (with removeloc command) the distance is calculated correctly.

Issue History

Date Modified Username Field Change
2022-05-04 15:55 EugeneZ New Issue
2022-05-04 15:55 EugeneZ Assigned To => msv
2022-05-04 16:14 msv Note Added: 0108317
2022-05-04 16:31 EugeneZ Note Added: 0108318
2022-05-04 16:31 EugeneZ File Added: TwoSolids2.brep
2022-05-04 16:32 EugeneZ Note Added: 0108319
2022-05-04 16:35 msv Assigned To msv => azv
2022-05-04 16:37 msv Note Added: 0108320
2022-05-04 16:39 msv Steps to Reproduce Updated
2022-05-04 16:41 msv Steps to Reproduce Updated
2022-05-04 16:42 msv Description Updated