canvas-toy
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • OBJLoader

Index

Properties

commentPattern

commentPattern: RegExp = /#.*/mg

facePerVertPattern

facePerVertPattern: RegExp = /([0-9]*)\/?([0-9]*)\/?([0-9]*)/

faceSplitVertPattern

faceSplitVertPattern: RegExp = /([0-9]|\/|\-)+/g

indexPattern

indexPattern: RegExp = /f\s+([-+]?[0-9]*\.?[0-9]+ ?|\/)+/mg

mtlLibPattern

mtlLibPattern: RegExp = /mtllib\s([^\s]+)/mg

mtlLibSinglePattern

mtlLibSinglePattern: RegExp = /mtllib\s([^\s]+)/

normalPattern

normalPattern: RegExp = /vn\s+([-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)? ?)+/mg

objectSplitPattern

objectSplitPattern: RegExp = /[o|g]\s+.+/mg

useMTLPattern

useMTLPattern: RegExp = /usemtl\s([^\s]+)/mg

useMTLSinglePattern

useMTLSinglePattern: RegExp = /usemtl\s([^\s]+)/

uvPattern

uvPattern: RegExp = /vt\s+([-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)? ?)+/mg

vertexPattern

vertexPattern: RegExp = /v\s+([-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)? ?)+/mg

Methods

buildUpMeshes

  • buildUpMeshes(gl: WebGLRenderingContext, container: Object3d, content: string, materials: any, unIndexedPositions: number[], unIndexedUVs: number[], unIndexedNormals: number[]): void
  • Parameters

    • gl: WebGLRenderingContext
    • container: Object3d
    • content: string
    • materials: any
    • unIndexedPositions: number[]
    • unIndexedUVs: number[]
    • unIndexedNormals: number[]

    Returns void

load

  • load(gl: WebGLRenderingContext, url: string): Object3d

parseAsTriangle

  • parseAsTriangle(faces: string[], forEachFace: function): void
  • Parameters

    • faces: string[]
    • forEachFace: function
        • (face: string[]): void
        • Parameters

          • face: string[]

          Returns void

    Returns void

praiseAttibuteLines

  • praiseAttibuteLines(lines: any): Array<Array<number>>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc