@huukhanhnguyen/geometry / namespaces/PolyCurve
namespaces/PolyCurve
add
constadd: (composite_json,segment_json) =>string=wasm.poly_curve_add
Parameters
composite_json
string
segment_json
string
Returns
string
domain
constdomain: (_composite_json) =>Float64Array=wasm.poly_curve_domain
Parameters
_composite_json
string
Returns
Float64Array
empty
constempty: () =>string=wasm.poly_curve_empty
Returns
string
endPoint
constendPoint: (composite_json) =>Float64Array=wasm.poly_curve_end_point
Parameters
composite_json
string
Returns
Float64Array
expand
constexpand: (composite_json,tolerance?) =>string=wasm.poly_curve_expand
PolyCurve.expand — a chain in, the Wire document (edges + shared vertices) out. tolerance is undefined for the kernel weld band.
Parameters
composite_json
string
tolerance?
number | null
Returns
string
fromPoints
constfromPoints: (points,closed) =>string=wasm.poly_curve_from_points
Parameters
points
Float64Array
closed
boolean
Returns
string
fromSegments
constfromSegments: (segments_json) =>string=wasm.poly_curve_from_segments
Parameters
segments_json
string
Returns
string
gather
constgather: (segments_json,tolerance?) =>string=wasm.poly_curve_gather
PolyCurve.gather — a CurveJson[] (or a { segments } object) in, a PolyCurve[] out. tolerance is undefined for the kernel weld band.
Parameters
segments_json
string
tolerance?
number | null
Returns
string
isArc
constisArc: (composite_json) =>boolean=wasm.poly_curve_is_arc
Parameters
composite_json
string
Returns
boolean
isClosed
constisClosed: (composite_json) =>boolean=wasm.poly_curve_is_closed
Parameters
composite_json
string
Returns
boolean
isEllipse
constisEllipse: (composite_json) =>boolean=wasm.poly_curve_is_ellipse
Parameters
composite_json
string
Returns
boolean
isLine
constisLine: (composite_json) =>boolean=wasm.poly_curve_is_line
Parameters
composite_json
string
Returns
boolean
isNurbs
constisNurbs: (composite_json) =>boolean=wasm.poly_curve_is_nurbs
Parameters
composite_json
string
Returns
boolean
isPolyline
constisPolyline: (composite_json) =>boolean=wasm.poly_curve_is_polyline
Parameters
composite_json
string
Returns
boolean
isSingleSegment
constisSingleSegment: (composite_json) =>boolean=wasm.poly_curve_is_single_segment
Parameters
composite_json
string
Returns
boolean
length
constlength: (composite_json) =>number=wasm.poly_curve_length
Parameters
composite_json
string
Returns
number
lengthAt
constlengthAt: (composite_json,t) =>number=wasm.poly_curve_length_at
Parameters
composite_json
string
t
number
Returns
number
paramAtLength
constparamAtLength: (composite_json,s) =>number=wasm.poly_curve_param_at_length
Parameters
composite_json
string
s
number
Returns
number
pointAt
constpointAt: (composite_json,t) =>Float64Array=wasm.poly_curve_point_at
Parameters
composite_json
string
t
number
Returns
Float64Array
reverse
constreverse: (composite_json) =>string=wasm.poly_curve_reverse
Parameters
composite_json
string
Returns
string
segmentCount
constsegmentCount: (composite_json) =>number=wasm.poly_curve_segment_count
Parameters
composite_json
string
Returns
number
segments
constsegments: (composite_json) =>string=wasm.poly_curve_segments
Parameters
composite_json
string
Returns
string
startPoint
conststartPoint: (composite_json) =>Float64Array=wasm.poly_curve_start_point
Parameters
composite_json
string
Returns
Float64Array
tangentAt
consttangentAt: (composite_json,t) =>Float64Array=wasm.poly_curve_tangent_at
Parameters
composite_json
string
t
number
Returns
Float64Array
tessellate
consttessellate: (composite_json,tolerance) =>Float64Array=wasm.poly_curve_tessellate
Parameters
composite_json
string
tolerance
number
Returns
Float64Array
transform
consttransform: (composite_json,elements) =>string=wasm.poly_curve_transform
Parameters
composite_json
string
elements
Float64Array
Returns
string