Jump to content


Is there a way to get primitives using a point?


  • Please log in to reply
27 replies to this topic

#25 magneto

magneto

    Grand Master

  • Members
  • PipPipPipPipPip
  • 1,295 posts
  • Joined: 04-October 11
  • Location:Canada
  • Name:Ryan K

Posted 24 June 2012 - 09:49 PM

Thanks alot man, I understand your technique now :)

#26 mantragora

mantragora

    Initiate

  • Members
  • PipPip
  • 229 posts
  • Joined: 08-December 11
  • Location:frozen hell
  • Name:to be, or not to be, TD ?

Posted 24 June 2012 - 10:22 PM

I made also test on my spider rig model, where there are different polygons with 3,4, 5 or more points. Model = 198,610 polygons/204,156 points.
Mantragora's Python version = 10970 ms
Mantragora's inlineCpp = 234 ms
Gaham's Python = 17865 ms
Graham's inlineCpp = 40 ms

Now starts more interesting part. With Graham's trick, with accessing geometry from another node instead of directly from PythonSOP, there is one surprise:
Mantragora's Python = 14968 ms
Mantragora's inlineCpp = 198 ms
Graham's Python = 27828 ms
Graham's inlineCpp = 5 ms

Both inlineCpp versions speeded-up.. BUT... clear Python solution slowed down by almost half. Now why is that ?

Edited by mantragora, 26 June 2012 - 12:00 AM.

magic happens here... sometimes

Vimeo
Twitter

#27 rdg

rdg

    Houdini Master

  • Members
  • PipPipPipPip
  • 729 posts
  • Joined: 21-August 05
  • Location:weta
  • Name:Georg Duemlein

Posted 24 June 2012 - 11:27 PM

View Postedward, on 24 June 2012 - 08:23 PM, said:

I think Graham's inlinecpp wrapper for getPrimitivesReferencingPoint() should be faster.

So it comes to down to reading the manual first?!
The Industrial Parametrization of the World
http://rdg.preset.de/

#28 edward

edward

    Grand Master

  • Members
  • PipPipPipPipPip
  • 3,325 posts
  • Joined: 10-September 02
  • Name:e.d.w.a.r.d. .

Posted 27 June 2012 - 09:05 PM

Well, I don't know if reading GEO_Detail.h counts as a "manual". :)
don't panic!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users