JSON decoders for the core OpenSolid types.
Decodes a Vector3d from a list of three floating-point components.
Decodes a Direction2d from a list of two floating-point components.
Decodes a Direction3d from a list of three floating-point components.
Decodes a Point2d from a list of two floating-point coordinates.
Decodes a Point3d from a list of three floating-point coordinates.
Decodes an Axis2d from an object with originPoint and direction
fields.
Decodes an Axis3d from an object with originPoint and direction
fields.
Decodes a Plane3d from an object with originPoint and normalDirection
fields.
Decodes a Frame2d from an object with originPoint, xDirection and
yDirection fields.
Decodes a Frame3d from an object with originPoint, xDirection,
yDirection and zDirection fields.
Decodes a SketchPlane3d from an object with originPoint, xDirection
and yDirection fields.
Decodes a LineSegment2d from a list of two endpoints.
Decodes a LineSegment3d from a list of two endpoints.
Decodes a Triangle2d from a list of three vertices.
Decodes a Triangle3d from a list of three vertices.
Decodes a BoundingBox2d from an object with minX, maxX, minY and
maxY fields.
Decodes a BoundingBox3d from an object with minX, maxX, minY,
maxY, minZ and maxZ fields.
Decodes a Polyline2d from a list of vertices.
Decodes a Polyline3d from a list of vertices.
Decodes a Polygon2d from a list of vertices.
Decodes a Circle2d from an object with centerPoint and radius fields.
Decodes a Circle3d from an object with centerPoint, axialDirection and
radius fields.
Decodes an Arc2d from an object with centerPoint, startPoint and
sweptAngle fields.
Decodes an Arc3d from an object with axis, startPoint and sweptAngle
fields.
Decodes a QuadraticSpline2d from a list of three control points.
Decodes a QuadraticSpline3d from a list of three control points.
Decodes a CubicSpline2d from a list of four control points.
Decodes a CubicSpline3d from a list of four control points.
Decodes a
Vector2dfrom a list of two floating-point components.