Forum Message



We have moved the forum to . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.


The forum is in read only mode.

Spline geometry update

2 years 10 months ago - 2 years 10 months ago #3606 by JBalis

I am working with the SplineGeometry2d class (in netgen/libsrc/geom2d/geometry2d.hpp) and I am changing its array of geometry points on the fly, i.e. I am getting its NgArray < GeomPoint<D> > geompoints and then I am modifying their coordinates one by one.

Is there an already implemented function allowing to update the spline segments of the class SplineSeg3 (in netgen/libsrc/gprim/spline.hpp) once the geompoints have been moved?

What I would like is to move each geometry point one by one (without full geometry regeneration), and then obtain the new control points and weights of the spline segments that have been changed from this geometry modification.

When moving the geometry points of the SplineGeometry2d class, I did not yet find a way to straightforwardly change the spline segments of the SplineSeg3 class. Could you hint me on how to do that?

Thank you very much,

Last edit: 2 years 10 months ago by JBalis.
Time to create page: 0.095 seconds