I had searched similar questions, With OpenCascade, how to do a collision detection of 2 shapes fast?.
Also ,here is the example srcipts: core_geometry_minimal_distance (code above)
But,It is hard for me to get any idea about : get the distance between a point and a shape.
Dose here have a easy way to get the distance between point and shape by pythonocc?
If it dose not, could anyane tell any idea about to get the distance?
In fact, I am trying to make a Adaptively Sampled Distance Fields
.In my understanding,it is necessary to get a distance between point and shape during makeing it.
Also,Could anyone tell any idea about how to make a Adaptively Sampled Distance Fields
?
If I do not explain clearly or use incorrect wording, tell me and I will fix it.
More than one week had gone.
The example ,author showed is :
https://github.com/tpaviot/pythonocc-demos/blob/master/examples/core_geometry_minimal_distance.py
Just use
BRepBuilderAPI_MakeVertex
to make a shape which is just a point to replace the box in the example's code.such as :and