Class: ClipPt2D

PD. ClipPt2D


new ClipPt2D(X, Y)

A 2D {X,Y} point suitable for use with ClipperLib.

This object prototypes the ClipperLib.FPoint class to round millimetre-based coordinates to two decimal places.

Parameters:
Name Type Description
X number

The 2D X-axis component.

Y number

The 2D Y-axis component.

Author:
  • drajmarsh

Methods


createFromXY(vec) <static>

Creates a new 2D clipper point from the x and y components of a 3D model position.

Parameters:
Name Type Description
vec THREE.Vector3

The 3D position in model space.

Returns:

Returns a 2D clipper point.

Type
object

createFromXZ(vec) <static>

Creates a new 2D clipper point from the x and z components of a 3D model position.

Parameters:
Name Type Description
vec THREE.Vector3

The 3D position in model space.

Returns:

Returns a 2D clipper point.

Type
object

createFromYZ(vec) <static>

Creates a new 2D clipper point from the y and z components of a 3D model position.

Parameters:
Name Type Description
vec THREE.Vector3

The 3D position in model space.

Returns:

Returns a 2D clipper point.

Type
object