Hello,
is there a possibility to apply different line types or line widths to a NURBS curve? The example NURBScurve.asy from the gallery shows how to define different colors for NURBS curves. The following code draws a circle by means of a NURBS and the polygon of the base points.
Unfortunately the settings for the pen "0.5mm+dashed" are ignored for the NURBS curve. Is there a way to get the specified linewidth and the dash pattern rendered correctly?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
At this time, NURBS are barely supported in Asymptote. A lot of missing routines (bounds, intersection, etc.) would have to be written to support them in the way that Bezier curves, triangles, and surfaces are supported. To embark on such a project, I would need to see some examples to persuade me that it would be worth the effort (as well as the extra complexity in the language). The next new feature, coming soon, is WebGL (HTML5) support of Bezier objects.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The next new feature, coming soon, is WebGL (HTML5) support of Bezier objects.
are you going to do tessellation in C++, asy language or JavaScript?
If you start exporting Bezier objects for WebGL as sets of triangles and segments it'll make possible export to many 3D formats like X3D.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thank you for your quick reply. Your answer points out clearly that full support for NURBS (a similar level of what is possible for cubic bezier objects) needs a lot of work.
Bernhard
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
is there a possibility to apply different line types or line widths to a NURBS curve? The example NURBScurve.asy from the gallery shows how to define different colors for NURBS curves. The following code draws a circle by means of a NURBS and the polygon of the base points.
Unfortunately the settings for the pen "0.5mm+dashed" are ignored for the NURBS curve. Is there a way to get the specified linewidth and the dash pattern rendered correctly?
At this time, NURBS are barely supported in Asymptote. A lot of missing routines (bounds, intersection, etc.) would have to be written to support them in the way that Bezier curves, triangles, and surfaces are supported. To embark on such a project, I would need to see some examples to persuade me that it would be worth the effort (as well as the extra complexity in the language). The next new feature, coming soon, is WebGL (HTML5) support of Bezier objects.
Hello John,
you wrote:
Hello John,
thank you for your quick reply. Your answer points out clearly that full support for NURBS (a similar level of what is possible for cubic bezier objects) needs a lot of work.
Bernhard