Archived issue #0024347
problem by tolerance of the distance of Face and Vertex
Description
If tolerance of attached Face is 4.e-6 or more, the distance of Boundary and Vertex will be returned.
Steps to reproduce
pload ALL
restore Attachment 1 (BREP) f
vertex v 34.265509314637 0.1 0.73361964922719
settolerance f 3.e-6
distmini d1 f v
#the distance value is : 2.92687e-014
settolerance f 4.e-6
distmini d1 f v
#the distance value is : 0.0165367
restore Attachment 1 (BREP) f
vertex v 34.265509314637 0.1 0.73361964922719
settolerance f 3.e-6
distmini d1 f v
#the distance value is : 2.92687e-014
settolerance f 4.e-6
distmini d1 f v
#the distance value is : 0.0165367
Public activity
3 archived notes
Participants are labeled by their role within this record.
It seems that this issue is solved by OCC6.7.1 beta.
The result:
--OCC6.6.0
Draw[9]> settolerance f 4.e-6
Setting Tolerance to 3.[revision removed]-006
Draw[10]> distmini d1 f v
d1_val d1
Draw[11]> dump d1_val
*********** Dump of d1_val *************
0.0165367029537048
--OCC6.7.0
Draw[9]> settolerance f 4.e-6
Setting Tolerance to 3.[revision removed]-006
Draw[10]> distmini d1 f v
d1_val d1
Draw[11]> dump d1_val
*********** Dump of d1_val *************
0.0165367029537048
--OCC6.7.1beta
Draw[9]> settolerance f 4.e-6
Setting Tolerance to 3.[revision removed]-006
Draw[10]> distmini d1 f v
d1_val d1
Draw[11]> dump d1_val
*********** Dump of d1_val *************
2.72742879238428e-014
The result:
--OCC6.6.0
Draw[9]> settolerance f 4.e-6
Setting Tolerance to 3.[revision removed]-006
Draw[10]> distmini d1 f v
d1_val d1
Draw[11]> dump d1_val
*********** Dump of d1_val *************
0.0165367029537048
--OCC6.7.0
Draw[9]> settolerance f 4.e-6
Setting Tolerance to 3.[revision removed]-006
Draw[10]> distmini d1 f v
d1_val d1
Draw[11]> dump d1_val
*********** Dump of d1_val *************
0.0165367029537048
--OCC6.7.1beta
Draw[9]> settolerance f 4.e-6
Setting Tolerance to 3.[revision removed]-006
Draw[10]> distmini d1 f v
d1_val d1
Draw[11]> dump d1_val
*********** Dump of d1_val *************
2.72742879238428e-014
Please add a test case and close the issue if it is Ok
Branch CR24347 was created.
Testing case:
bugs modalg_5 bug24347 - OK
Testing case:
bugs modalg_5 bug24347 - OK