[Bf-committers] curves info

2011-11-02 Thread Fabio Russo
Hi,
I'm implementing a new feature to the AMA: http://projects.blender.
org/tracker/index.php?func=detail&aid=26662
and I need access to coordinates of points, circled in red: http://www.
pasteall.org/pic/20036
I need help for c, not for the python! 
Thanks in advance for your help and sorry for my English!
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


[Bf-committers] curves info

2011-11-04 Thread Fabio Russo
Hello Sergey,
thanks for the information! :-)
If I have other concerns, warning;-)

Thanks again, Fabio (ruesp83)
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] curves info

2011-11-04 Thread Sergey I. Sharybin
Hi,

Points array is stored in Nurb structure  Depending of curve type 
(bezier or nurbs) Nurb->bezt or Nurb->bp is used. Generally we're checking:

if(nu->bezt) { /* use nu->bezt as array of points */ } else { /* use 
nu->bp as array of points */ }

For beziers nu->bezt contains nu->pntsu points, for nurbs it contains 
nu->pntsu*nu->pntsv points.

Coordinates in BezTriple are stored in float vec[3][3] property. It is 
array of three 3d coordinates: coordinate for left handle, control point 
and right handle.

Coordinates in BPoint are stored in float vec[4] property. It's X, Y, Z 
coordinates and Weight.

Hope it'll help you/

Fabio Russo wrote:
> Hi,
> I'm implementing a new feature to the AMA: http://projects.blender.
> org/tracker/index.php?func=detail&aid=26662
> and I need access to coordinates of points, circled in red: http://www.
> pasteall.org/pic/20036
> I need help for c, not for the python!
> Thanks in advance for your help and sorry for my English!
> ___
> Bf-committers mailing list
> Bf-committers@blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


-- 
With best regards, Sergey I. Sharybin

___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers