Code Monkey home page Code Monkey logo

nurbs-designer's Introduction

nurbs-designer

NURBS( Non-Uniform Rational B-Splines ) curve rendering engine.

NURBSEditor.java is the Java GUI that looks like this: gui.png

NURBSSurface.java holds the construction algorithm for the 2D basis functions.( They're like 3D sinusoids( with two parameters ) but unlike sinusoids, the definition for the NURBS basis is such that they're fundamentally local in nature which is a much nicer function for designers to work with.

For example: an order 3 NURBS surface plotted with 1600 samples ( 40x40 ) o_3_s_40.png

Note that the distortion on the corners have whatsoever no effect beyond the neighbouring control points.

For better clarity, see the order 2 surface which is basically linear in nature. o_2_s_40.png

The bases in this case don't even affect the neighbouring points.

Similarly the other extreme ( order 7 ) affects all the points in this case and upto 6 waves of neighbouring points in the general case. o_7_s_40.png

the GUI supports an increase in the sample size.. 10000 samples( 100x100 ) o_3_s_100.png

Check out some of my other projects here: OpenCL path trapcer: https://github.com/SaipraveenB/opencl-path-tracer.git OpenGL HDR example: https://github.com/SaipraveenB/opengl-hdr.git

nurbs-designer's People

Contributors

saipraveenb avatar

Stargazers

Hossam Ali avatar  avatar lyrachord avatar

Watchers

James Cloos avatar  avatar Arvindh Suriya avatar

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.