Hi!
I am using opennurbs library, and I’m trying to create a simple square surface taken from an image:
https://postimg.org/image/4jvelpjn5/
I am setting the C & V vector sizes to the image height and width:
ON_NurbsSurface *surf = ON_NurbsSurface::New(3, false, 4, 4, im_height, im_width);
Then, for each white pixel in the image, I add a control point/vertex:
surf -> SetCV(x, y, ON_3dPoint(x, y, 0));
Now the result I’m getting is this:
https://postimg.org/image/lc6cy0mrr/
For some reason it is connecting all control points to the origin (0,0), I have no idea why.
Is there a fix for this please?
Kind regards.