Code Monkey home page Code Monkey logo

bsplinelib's Introduction

BSplineLib

BSpline and NURBS library written in modern c++ for seamless integration to splinepy. This is a forked project of SplineLib.

Why a fork?

SplineLib implements this paper under MIT License, where they take "basis function as a data structure" approach; each basis function is an object and holds precomputed denominators of Cox-de Boor recursion formula. Such basis functions are created in fully recursive manner and would be also retrieved in fully recursive manner during evaluations. While this works fine with low-order splines, it posed some practical issues with high-order splines. Increasing orders/degrees results in increased depth of recursion, which caused high memory consumption and poor performance. At the same time, bookkeeping of the basis functions became cumbersome in dynamic situations we aim to support in splinepy. Due to aforementioned inconveniences in our applications, this project opted for A2.2 & A2.3 algorithms from The NURBS Book.

What can BSplineLib do / does differently?

  • Basis function evaluations using The NURBS BOOK - A2.2
  • Basis function derivative evaluations using The NURBS BOOK - A2.3
  • Direct contiguous buffer access for evaluation input and output
  • Less use of NamedType
  • Control points (VectorSpace) creation without copy, based on a contiguous memory view
  • Efficient tensor product using adapted version of bezman's RecursiveCombine
  • Tests implemented in splinepy

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.