Hi,

i wrote a script to test the BRepExtrema_DistShapeShape stuff again:
http://pastebin.com/2ei6dgja

Could you please verify if it is really an issue with
BRepExtrema_DistShapeShape and not my bad coding?

It hangs my machine with approximately n > 1300.

For n = 1000:

:~$ time python test_BRepExtrema_DistShapeShape.py
real    0m42.641s
user    0m39.758s
sys     0m2.740s

# Excerpts from /proc/cpuinfo:
processor       : 7
vendor_id       : GenuineIntel
cpu family      : 6
model           : 42
model name      : Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz

#... /proc/meminfo:
MemTotal:       16412732 kB

:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"

Regards,
Uwe


On 09/08/13 19:05, Uwe Schlifkowitz wrote:
> Hi Charles,
> 
> my edges are indeed segments. From the link you gave me and some other
> sources (https://priithon.googlecode.com/hg/Priithon/usefulGeo.py) i
> coded some functions to calculate point to point distance and point to
> line distance, see http://pastebin.com/2Zm4rnV9
> I'm going to replace the remaining BRepExtrema_DistShapeShape
> occurrences with these new functions on monday and see if it is faster.
> 
> My first approach was without pre-filtering, on my second approach
> (after your suggestion) i remembered my experience with KD-trees and
> used that. It is not very elegant since the mid points of the edges do
> not lie on the surface, but it is working now. Of course, there's always
> room for improvement!
> 
> Regarding the possible memory leak: I'm going to test again next week
> and report on anything i find out.
> 
> 
> Hi Lie Pablo,
> 
> i'm not sure if there is a misunderstanding.
> 
> I want to assign mesh nodes to edges that are almost perpendicular to
> the mesh surface. The mesh in the image i sent is only for illustration
> purposes and has almost nothing to do with the distribution of the nodes
> in my real example which i am unfortunately not allowed to show.
> 
> From what you wrote, it seems you project points into a mesh. If i am
> wrong, please explain.
> 
> Thanks for your help (both of you)! Have a nice weekend.
> -Uwe
> 
> 
> On 09/08/13 14:05, Charles Sharman wrote:
> 
> _______________________________________________
> Pythonocc-users mailing list
> Pythonocc-users@gna.org
> https://mail.gna.org/listinfo/pythonocc-users
> 

_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to