Questions tagged [curves]

129 questions
1
vote
1 answer

Aligning curves along the horizontal direction

I have some 'n' experimental curves for the same experimental conditions. Due to the inherent thermal drift in the system, the data sets are not exactly aligned with each other. I am looking for a robust algorithm that would align the data-curves…
1
vote
1 answer

How do I compute a python function which calculates/plot minimum distance between a point and a curve?

import numpy as np import matplotlib.pyplot as plt from scipy.optimize import fmin_cobyla P = (2487,1858) def f(x): return (1.77425666496e-05 * x**3 + -0.125555135823 * x**2 + 296.656015233 * x + -232082.382985) def objective(X): x,y = X…
1
vote
1 answer

Tangent line to a 3D curve at a given 3D point

I'm trying to compute tangent line (or tangent vector) at 3D point of a 3D curve. The problem is how to compute the slope according to x,y and z at point ? I recall that for a 2D curve, the equation of the tangent line is: tang=(x-x_k)*slope_k+y_k
javier
  • 21
  • 6
1
vote
1 answer

Converting between Bezier Curves of different degree(order)

I'm working on a personal project involving Bezier curves. I have seen many implementations that handle quadratic and cubic curves individually, but I'm looking to create a more generalized algorithm where I can add and remove control points by…
memBrain
  • 33
  • 7
1
vote
1 answer

integer, list Maya Python concatenation

I have a problem. I am writing a Python-Maya script. I'm trying to extrude a list of objects to another list of objects, but I get the following error when I try to do it(the error is not the line where I start the for loop): Error: line 1:…
1
vote
0 answers

Interpolates 3D contours onto parallel 3D planes

I have a 3D matrix (250x3x7) where the 1st dimension are the data points, 2nd dimension the x,y,z coordinates, and 3rd dimension the slice location. This 3D matrix are the contours at each slice location and these contours are not parallel to each…
Leong Chen Onn
  • 71
  • 1
  • 1
  • 6
1
vote
2 answers

Find the area under a function in the range from a to b

For an assignment, I am trying to find the area function F(X) between the range from a to b, [a,b]. Using calculus, this wouldn't be so hard. I did base this on the theorems of calculus to find the area and worked my way around it to reach certain…
tokyolerd
  • 29
  • 1
  • 10
1
vote
2 answers

Error calculating the area between two lines using "integrate"

I'm attempting to calculate the area between two plots using R's integrate function. I have two forecast curves that I'm able to place on the same plot and also shade in the area between the two curves, for visualisation: x1 = seq(1,200,1) y1 =…
Qaribbean
  • 178
  • 2
  • 3
  • 17
1
vote
2 answers

assigning .overrideColor values to buttons in Maya

I want to assign all 31 colors from the .overrideColors attribute to 31 generated buttons in Maya via Python. The bgc option from cmds.button only allows me to put 3 float values. How can I create those colors ? It is supposed to change the color of…
brewmaster
  • 45
  • 8
1
vote
1 answer

Can we do Yield curves using Adobe Flex?

I want to create Yield curves using adobe flex. pls, any one have an Idea how to create yield curves in a chart using flex...
user442928
  • 1
  • 1
  • 3
1
vote
0 answers

Extract shapes of curves from binary images

I am analyzing back bone formation in zebrafish embryos and in this picture: I would like to extract the shape and position of the horizontal lines/curves. Here is a little information about the image. The image at the top is already a segmented…
sundar
  • 59
  • 4
1
vote
2 answers

Drawing Curves using XNA

I've been making progress in a fan-replicated game I'm coding, but I'm stuck with this problem. Right now I'm drawing a texture pixel by pixel on the curve path, but this cuts down frames per second from 4000 to 50 on curves with long lengths. I…
Not Szwagi
  • 81
  • 2
  • 10
1
vote
1 answer

Issue overriding c++ class for drawing curve

I'm trying to implement a program where lines will be drawn from point to point when a user clicks on a screen. I have a Polyline class, which is a subclass of a Freeform class, which is a subclass of a Curve class. The draw method of the Curve…
user3802348
  • 2,502
  • 11
  • 36
  • 49
1
vote
1 answer

Maya Python: Making clusters on curve CVs

I've found all the CV's on a curve, and I'd like to make a cluster on each one. But I'm getting an error that isn't super helpful. Here's the code: # Find all the CVs on the curve, loop through and create a cluster on each curveCVs =…
john
  • 408
  • 9
  • 30
1
vote
2 answers

How to efficiently evaluate or approximate a road Clothoid?

I'm facing the problem of computing values of a clothoid in C in real-time. First I tried using the Matlab coder to obtain auto-generated C code for the quadgk-integrator for the Fresnel formulas. This essentially works great in my test scnearios.…
rava
  • 183
  • 12
1 2 3
8 9