Optionalweights: number[]Optionaldegree: numberOptionalclosed: booleanOptionaldegree: numberOptionalclosed: booleanOptionalstartTangent: AcGeVectorLikeOptionalendTangent: AcGeVectorLikeWhen this is set, it calculates the bounding box of this shape and resets this property to false. Default is false.
Return true if its start point is identical to its end point. Otherwise, return false.
Return true if its start point is identical to its end point. Otherwise, return false.
Degree of the spline to be created.
The end point of this spline
The start point of this spline
Return a deep-cloned copy of this spline.
Evaluates this spline at the given parameter value.
Parameter along the knot vector.
Return the value of the control point at position index in the list of control points. If index is negative or more than the number of control points in the spline, then point is set to the last control point.
Input index (0 based) of point to get
Return the value of the control point at position index in the list of control points. If index is negative or more than the number of control points in the spline, then point is set to the last control point.
Input index (0 based) of point to get
Samples the spline for planar offset using analytic NURBS tangents and curvature-adaptive parameter refinement.
Divide this spline into the specified nubmer of points those points as an array of points.
Input the nubmer of points returned
Return an array of point
Returns the nearest point on this spline to the given point.
Query point in WCS.
Number of interior samples used by the underlying NURBS curve.
Return new shape translated by given vector. Translation vector may be also defined by a pair of numbers.
StaticcreateCreate a closed spline from fit points using AcGeNurbsCurve.createClosedCurve
Array of fit points defining the curve
Knot parameterization type for NURBS
Optional degree of the spline (default: 3)
A closed spline
StaticfromCreates a 3D spline geometry from control points, knots, and optional weights.
This factory is intended for robust deserialization: it normalizes degree and
weights from imperfect source data and returns null instead of throwing when
the NURBS definition is invalid.
Control vertices defining the curve shape
Full knot vector for the spline
Optional per-control-point weights; ignored when the array length
does not match controlPoints.length
Degree from the source file; when less than 1, derived from
knots.length - controlPoints.length - 1, then clamped to [1, controlPoints.length - 1]
Whether the spline forms a closed loop
A spline geometry, or null if construction fails
StaticfromCreates a 3D spline geometry from parsed DWG/DXF spline-edge data.
Used for hatch boundary paths, proxy-graphics edges, and similar structures where
spline data is embedded as a lightweight edge record rather than a full SPLINE
entity. Control-point data is preferred; fit data is used when control points are
absent. Fit-point edges always use 'Uniform' knot parameterization and are
treated as open curves.
Parsed spline-edge payload from a DWG/DXF reader
Control vertices, optionally with per-point weight
Optionaldegree?: numberOptional declared degree
OptionalendTangent?: null | { x: number; y: number; z?: number }Optional end tangent for fit-data edges
Fit points when the edge is defined by fit data
Knot values for the control-point representation
Count of control points in the edge record
Count of fit points in the edge record
Count of knots in the edge record
OptionalstartTangent?: null | { x: number; y: number; z?: number }Optional start tangent for fit-data edges
A spline geometry, or null when neither representation can be built
StaticfromCreates a 3D spline geometry that interpolates fit points.
Knots and control points are generated from the fit data. Non-zero start/end
tangents constrain the curve ends; zero-length tangents are ignored. Degree is
clamped so that fitPoints.length + tangentCount >= degree + 1.
Points the spline should pass through
Knot parameterization ('Uniform', 'Chord', or 'SqrtChord')
Requested degree from the source file; defaults to 3 when missing or less than 1, then clamped to fit the available fit/tangent data
Whether the spline forms a closed loop
OptionalstartTangent: null | AcGeVector3dLikeOptional start tangent direction; ignored when zero-length
OptionalendTangent: null | AcGeVector3dLikeOptional end tangent direction; ignored when zero-length
A spline geometry, or null if construction fails
The area enclosed by this spline. Open splines return
0.