Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ShapePath

This class is used to convert a series of shapes to an array of Paths, for example an SVG shape to a path (see the example below).

Hierarchy

Index

Constructors

constructor

Properties

color

color: I3JS.Color
default

new THREE.Color()

currentPath

currentPath: any

The current Path that is being generated.

default

null

subPaths

subPaths: any[]

Array of Paths.

default

[]

type

type: string
default

'ShapePath'

Methods

bezierCurveTo

  • bezierCurveTo(aCP1x: number, aCP1y: number, aCP2x: number, aCP2y: number, aX: number, aY: number): I3JS.ShapePath
  • This creates a bezier curve from .currentPoint with (cp1X, cp1Y) and (cp2X, cp2Y) as control points and updates .currentPoint to x and y.

    Parameters

    • aCP1x: number
    • aCP1y: number
    • aCP2x: number
    • aCP2y: number
    • aX: number
    • aY: number

    Returns I3JS.ShapePath

lineTo

moveTo

quadraticCurveTo

  • quadraticCurveTo(aCPx: number, aCPy: number, aX: number, aY: number): I3JS.ShapePath

splineThru

toShapes

  • toShapes(isCCW: boolean, noHoles?: boolean): I3JS.Shape[]

Generated using TypeDoc