AlphaPrism is in active development: features may change and you may run into bugs. Keep backups of your work.Known issuesReport a bug
Skip to content

Curve from Data ​

Make a curve from formulas of t or a table of x,y,z points typed, pasted or read from a file.

A real Curve from Data result: radius 12 mm, pitch 8 mm and five turns give 40 mm of axial rise.
Prism result capture. A real Curve from Data result: radius 12 mm, pitch 8 mm and five turns give 40 mm of axial rise. View full size
A helix around its axis, the pitch-times-turns height calculation and a thickened path illustrating a later sweep.
Concept diagram. Choose X, Y or Z, radius, pitch, turns and handedness. End radius 0 keeps the starting radius; a different end radius tapers the helix. View full size

0.4 development branch

See the illustrated 0.4 guide for workflows and current limits. The settings below were refreshed from the development branch.

In the app

Describe the curve with formulas of t. Cartesian, cylindrical and spherical coordinates are supported; t runs from the first value to the last, so a full turn of a helix is x=rcos(t360), y=rsin(t360) for t from 0 to 1.

How to use ​

  1. Choose Curve from Data. Its panel opens on the right with numbered steps; anything you selected first fills matching inputs.
  2. Adjust the settings and check the preview in the viewport.
  3. Use the panel buttons as needed: Open the Data panel, New table for this curve.
  4. Confirm in the panel to apply, or cancel to leave the model unchanged. Applied changes are one undo step.

Settings ​

SettingDefaultValues
Points fromEquationEquation, Table or file, Helix
CoordinatesCartesian x, y, zCartesian x, y, z, Cylindrical r, θ, z, Spherical ρ, θ (from Z), φ
x | r | ρ20cos(t720)Text
y | θ | θ20sin(t720)Text
z | z | φ40*tText
t from0
t to1
Points120Whole number, 4 to 5000
Angles inDegreesDegrees, Radians
Points0,0,0; 20,10,5; 40,0,10; 60,-10,15Text
…or read a file or sheetText
Use a table from the Data panelNone: type or paste the points belowNone: type or paste the points below
Scale1 ×0.000001 to 1000000 ×
CurveSmooth through the pointsSmooth through the points, NURBS control points, Straight segments
ClosedOff
Move X0 mm
Move Y0 mm
Move Z0 mm
Helix radius10 mm
End radius (0 = same)0 mm
Pitch (rise per turn)5 mm
Turns50.05 to 1000
HandednessRight-handedRight-handed, Left-handed
AxisZX, Y, Z

Script it ​

Command name curve_equation. See Python scripting and the command reference.

python
import cadkit as cad

cad.run("curve_equation", points_from="Equation", coordinates="Cartesian  x, y, z")