Hi!
     >So how does one turn a C style array of 2d points into a ON_2dPointArray?
      A member function 'ON_SimpleArray::Append(..)' in 'Class ON_SimpleArray' 
may be useful. 
     >I thought i could easily turn the C  array into an ON_2dPointArray and 
then call the ON_BezierCurve  constructor on the ON_2dPointArray. 
      I recommend another way to create BezierCurve.
      At first, you can use the default constructor of 'ON_BezierCurve', and 
then call the function 'bool Create(..)' to specify some geometry parameter, 
like order, isrational, dim. At last, call the function 'SetCV(..)' to set 
control points.
      ps:'ON_NurbsCurve' can also be created in this way if needed.
Cheers!
Laijiren
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to