Questions tagged [bspline]

A B-spline (basis spline) is the generalization of the Bézier curve which has minimal support with respect to a given degree, smoothness, and domain partition.

A B-spline (basis spline) is the generalization of the Bézier curve which has minimal support with respect to a given degree, smoothness, and domain partition.

190 questions
0
votes
1 answer

Tessellating a BSpline patch using a triangle list (OpenGL)

As the title describes I am trying to tessellate a BSpline patch using a triangle list. Here is an image of my patch from the front, which looks exactly how it should. My problem is the rear of the patch, which gives this effect: As you can see…
user2484294
  • 107
  • 1
  • 5
0
votes
1 answer

Thrust vector transformation involving removing vector elements

I have a thrust device_vector divided into chunks of 100 (but altogether contiguous on GPU memory), and i want to remove the last 5 elements of each chunk, without having to reallocate a new device_vector to copy it into. // Layout in memory before…
user1522407
  • 131
  • 2
  • 4
0
votes
1 answer

Constrained smoothing in R

I want to generate a continuous curve based on some data, but the curve needs to satisfy some constraints: All values of the curve are on the interval [0,1]. Values outside this interval aren't interpretable. I want to specify the exact start and…
heyitsbmo
  • 1,715
  • 1
  • 14
  • 29
0
votes
0 answers

B-Spline Basic function Matlab recursive

I'm trying to make a B-Spline Function first i set the variables and made the Knot vector # cmpp.m % Set variables k = 3; % (8 mod 2 + 2 + 1) p = k - 1; % Order = 2 n = 2*k - 1; % Control points = 5 l = n + p + 1; …
Elteroooo
  • 2,913
  • 3
  • 33
  • 40
-1
votes
1 answer

generating and plotting a matrix of bsplines with different positions and width

I am able to create a set of bsplines in a single plot. However, I would like to create a matrix of individual bsplines, whereby each matrix row contains a single bspline from range 1950 to 20150, in the way depicted in the drawing. The bsplines…
SysEng
  • 43
  • 8
-1
votes
1 answer

B-spline of 3 grade (non-uniform and non-fractal) in qt c++

I have a problem with modifying my code based on Bézier curve (which works) to B-spline. This is how it draws: Basic formula: void MainWindow::rysujKrzywa(int koniec){ double x, y; tm = m - 3; for( double t = 0; t <= m-2; t += 0.01){ …
Sempron
  • 29
  • 1
  • 4
-1
votes
1 answer

OpenCascade: Reading Trimmed Surfaces From IGES

I am attempting to read trimmed surfaces from an IGES file using OpenCascade. I can get the surfaces, but how do I get the trimming curves.boundary curves from something like an Entity 144? Any help would be great. I am looking to get the actual…
Red
  • 2,256
  • 5
  • 25
  • 38
-1
votes
1 answer

Convert line to "rectangle snake". Canvas. JavaScript

May be someone know good JavaScript library or framework for canvas drawing. I have following issue: 1) draw some line via free-hand (like Paint/Photoshop pencil) 2) need convert line into "rectangle snake" (build a line using rectangles with fixed…
archik
  • 455
  • 1
  • 5
  • 22
-1
votes
2 answers

function crashes depending on function argument definition - double free or corruption

I have defined a class for the evaluation of bspline basis functions. I have nowhere used pointers, or new delete etc. The class is the following: class bspline_basis{ //private: public: int k; …
Foivos
  • 545
  • 4
  • 13
-2
votes
2 answers

What does s() mean?

I can not understand what s(xx) does in this code. import numpy as np import matplotlib.pyplot as plt import scipy.signal as sps import scipy.interpolate as spi # plot cubic cardinal B-spline (knots 0, 1, 2, 3, 4) p = 3 xx = np.linspace(0, p+1,…
1 2 3
12
13