UNPKG

@stelmashchuk/autocad-dxf

Version:

A module which can be used to parse AutoCAD dxf files and to make programmatic and geometric operations on the AutoCAD drawing entities.

73 lines 3.08 kB
{ "equations": [ { "interval": '0 ≤ t ≤ 638.3901689459577', "nurbs": { "X": { "coefficients_numerator": [-9.66999005509536e-7, 0.0018157651492060264, -1.0000000000000036, 4817.439144962657], "coefficients_denominator": [0, 0, 0, 1], "equation": 'x(t) = (-9.66999005509536e-7t^3 + 0.0018157651492060264t^2 + -1.0000000000000036t + 4817.439144962657)/(0t^3 + 0t^2 + 0t + 1)' }, "Y": { "coefficients_numerator": [-0.000004256735387139126, 0.004240058593135155, 0, -135.1812993643543], "coefficients_denominator": [0, 0, 0, 1], "equation": 'y(t) = (-0.000004256735387139126t^3 + 0.004240058593135155t^2 + 0t + -135.1812993643543)/(0t^3 + 0t^2 + 0t + 1)' }, "Z": { "coefficients_numerator": [0, 0, 0, 0], "coefficients_denominator": [0, 0, 0, 1], "equation": 'z(t) = (0t^3 + 0t^2 + 0t + 0)/(0t^3 + 0t^2 + 0t + 1)' } }, "length": 695.8595808793503, "area": 19327.68094349579 }, { "interval": '638.3901689459577 ≤ t ≤ 1276.780337891915', "nurbs": { "X": { "coefficients_numerator": [2.9931278238837417e-7, -0.0006094378394371821, 0.5482257456481792, 4487.981779852384], "coefficients_denominator": [0, 0, 0, 1], "equation": 'x(t) = (2.9931278238837417e-7t^3 + -0.0006094378394371821t^2 + 0.5482257456481792t + 4487.981779852384)/(0t^3 + 0t^2 + 0t + 1)' }, "Y": { "coefficients_numerator": [0.0000032299554229379377, -0.01009823084013858, 9.15342301370366, -2082.999720748386], "coefficients_denominator": [0, 0, 0, 1], "equation": 'y(t) = (0.0000032299554229379377t^3 + -0.01009823084013858t^2 + 9.15342301370366t + -2082.999720748386)/(0t^3 + 0t^2 + 0t + 1)' }, "Z": { "coefficients_numerator": [0, 0, 0,0], "coefficients_denominator": [0, 0, 0, 1], "equation": 'z(t) = (0t^3 + 0t^2 + 0t + 0)/(0t^3 + 0t^2 + 0t + 1)' } }, "length": 648.8961375219892, "area": 22186.9981181172 }, { "interval": '1276.780337891915 ≤ t ≤ 2227.985036856916', "nurbs": { "X": { "coefficients_numerator": [-1.8819369705481368e-7, 0.0012578782232067348, -1.8359266877653404, 5502.661429692222], "coefficients_denominator": [0, 0, 0, 1], "equation": 'x(t) = (-1.8819369705481368e-7t^3 + 0.0012578782232067348t^2 + -1.8359266877653404t + 5502.661429692222)/(0t^3 + 0t^2 + 0t + 1)' }, "Y": { "coefficients_numerator": [-7.967439925247336e-7, 0.005325401080652236, -10.539166961644163, 6298.03750681546], "coefficients_denominator": [0, 0, 0, 1], "equation": 'y(t) = (-7.967439925247336e-7t^3 + 0.005325401080652236t^2 + -10.539166961644163t + 6298.03750681546)/(0t^3 + 0t^2 + 0t + 1)' }, "Z": { "coefficients_numerator": [0, 0, 0, 0], "coefficients_denominator": [0, 0, 0, 1], "equation": 'z(t) = (0t^3 + 0t^2 + 0t + 0)/(0t^3 + 0t^2 + 0t + 1)' } }, "length": 1087.7505003217354, "area": 8953.460525112587 } ], "length": 2432.506218723075, "area_end_to_start": -115508.62859251696, "area": 65040.48900579139 }