 A spline curve is created by default or if the option Polyline=False is used. If the option Polyline=True is used, then the points are connected by straight line segments.

By default, 2D curves are created. When specifying 2D curves, the first column of the data points must be an integer and gives the height of the plane of one of the curves. The beginning of a new curve is specified by changing this height from one line to the next. If option 3D=True is used, the curves can be 3D

Use the Fit keyword to specify whether Curve Fitting or Interpolation is used.
Fit=True uses Curve Fitting. Curve Fitting creates a curve that "Fits" the data points using a specified tolerance. The curve may not pass exactly through all points and the distance from the curve to the point will be within the tolerance.
Use the Fittol keyword when Fit=Trueto specify the Curve Fitting tolerance in model units. For example Fittol=1.0e2
The curve below uses Curve Fitting (i.e. Fit=true). A large tolerance (fittol=2.0) is used to exaggerate the fact that the curve does not pass through the points but only gets within the specified tolerance.
Fit=False uses Interpolation. Interpolation requires that the curve pass exactly through all of the points. An interpolation method is used to build a continuous curve through all of the points.
The curve below is interpolated (i.e. Fit=False). There are seven points in the file and the curve passes exactly through each one.

Multiple curves are separated by blank lines.

You can import point curve text files that contain singlepoint curves, which will be created as points.

Pointcurve text files opened or inserted in display a closed curve when the file has a repeated value.

Curves can be imported to coordinate systems or other geometry like other imported objects.

Pointcurve text files with columns separated by commas can be opened or inserted in . This feature allows you to import any commaseparated value file into .

If there is an error reading the input text file, a message will appear with the line number of the error in parentheses followed by the text appearing on that line.
The following example shows the contents of a point curve text file on the left and the 3D curves it creates on the right:

Note that the point coordinates are (Z, X, Y).

For example (1, 2, 3) is (Z=1, X=2, Y=3).

3d=true 1 0 0 3 0 0 
Keywords:
 polyline=false  spline curves are created.
 polyline=true  straight lines are created.
 3d=true  3D curves are created.
 3d=false  curves are twodimensional. This is also the case if the option is not set.
 fit=true  use Curve Fitting.
 Curve Fitting finds the "Best Fit" through the points.
 Does not require the curve to pass through all of the points
 fit=false  use Interpolation.
 Interpolation forces the curve to pass through all the points in the file.
 fittol=1.0e2  Curve Fitting tolerance in the units used in the file.
The blank line after the first set of coordinates indicates that the next set of coordinates is a new curve.
You can copy the file contents above and paste them into a text file, then use File to try it yourself.
Comments
0 comments
Please sign in to leave a comment.