Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

GML

cjcliffe edited this page · 5 revisions

CubicVR.GML

Load Graffiti Markup Language data.

Constructor:

GML( srcUrl )

Parameters:

  • srcUrl : URL of GML data. (required)

Structure:

  • GML
    • name : Name from GML name element.
    • origin : [x, y, z] origin from GML origin element. (default [0, 0, 0])
    • strokes : Array of strokes.
    • bounds : [x, y, z] bounds from GML screenBounds element.
    • upvector : [x, y, z] from GML up element.

Methods:

addStroke( points, tstep )

Parameters:

  • points - An array of points [x, y, z] (required)
  • tstep - (Default 0.1)

Returns:

none

recenter()

Parameters:

none

Returns:

none

generateObject( seg_mod, extrude_depth, pwidth, divsper, do_zmove )

Parameters:

  • seg_mod - (Default 0)
  • extrude_depth - (Default 0)
  • pwidth - (Default: 0.015)
  • divsper - (Default: 0.02)
  • do_zmove - (Default 0)

Returns:

A compiled Mesh.

Something went wrong with that request. Please try again.