Git Product home page Git Product logo

Comments (3)

orbingol avatar orbingol commented on July 29, 2024

Hi @thoeschler,

Just for visualization of the surface, the only thing you need is the evaluated points, i.e. evalpts property. Control points, knot vectors and polynomial degree are required to compute the evaluated points. For sure, it is possible to visualize the control point grid alone and even add the parametric dimensions to that graph, if it makes sense.

The order of control points or evaluated points is not required for visualization. You can run a tessellation algorithm on the points (most assume the input as a point cloud) or just visualize the points as small spheres or use any external visualizer, e.g. Paraview. The visualizers in the geomdl.visualization package are just examples which are created with the intention of illustrating extensibility options.

Hope these help.

from nurbs-python.

thoeschler avatar thoeschler commented on July 29, 2024

Hi,
thanks for your answer. I actually mixed something up. For surface definition you have to order the control points. I found a way to get them in ordered form.

I have another question. Is it already possible to plot both curves and surfaces in the same figure?
CurveContainer and SurfaceContainer and render only work for either of the two.

from nurbs-python.

orbingol avatar orbingol commented on July 29, 2024

For evaluation of the surface, yes, you have to have the ordered points, but you asked for visualization, and it is not necessary to order any points for that.

Containers does not support containing or visualization of mixed geometries at this time. You may extend the base class and add any feature you would like to.

from nurbs-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.