renderGlobal Class
Class containing all the methods used in the 3d visual assembly
Item Index
Methods
- addArcSubDiv
- addCurveKeyFrames
- addDisplacement
- addGrid
- addGrid
- addLines
- alignAssemblyCenter
- animate
- arrayToString
- bindPartsToKeyFrames
- centerGeometry
- combineBounds
- copyFrame
- copyFrameList
- cutOffNames
- cutoffPartNames
- flipTheTimes
- flipTreeTime
- getChildrenByTag
- getDepth
- getFirstIntersect
- getGeometries
- getGlobBounds
- getLongestTime
- getMov
- getMovement
- getNameList
- getNames
- getPartCenter
- getPartNameCutoff
- getPartNames
- getRandomUTF
- getRef
- getStdMaterial
- getStdMaterial
- getTimes
- getTreeNames
- grab
- grabInd
- grabInterp
- hasNaN
- hide
- hideChildren
- initAxisLines
- insertTreequenceHTML
- interp
- interpolate
- loadParts
- loadParts
- longestTimeFromFrames
- makeArcPointList
- makeFastenerKeyFrames
- makeKeyFrames
- mergeTrees
- parseStl
- parseStlBinary
- rdr_grabExtension
- rdr_lockChange
- rdr_manageControls
- rdr_mouseMoved
- rdr_recieveData
- rdr_registerDown
- rdr_registerUp
- rdr_renderParts
- rdr_showHideTreequence
- rdr_tryMouseLock
- readMultipleFiles
- readMultipleFiles
- render
- show
- showChildren
- showFrame
- showFrames
- similarityCutoff
- swapHiding
- trim
- updateAxisLines
- updateLines
- vecDesc
- whatsIn
Methods
addArcSubDiv
-
target
-
center
-
startDisp
-
endDisp
-
level
Recursively adds Vector3 objects onto the Vector3 list, target, interpolating from startDisp and endDisp in an arc centered at the Vector3 object center. Each layer of recursion adds the midpoint of the arc from startDisp to endDisp until level = 0.
Parameters:
-
target
Vector3 ArrayThe list where the calculated Vector3 objects should be added
-
center
Vector3The point which the generated arc should be centered on
-
startDisp
Vector3The starting point of the arc
-
endDisp
Vector3The ending point of the arc
-
level
IntThe desired levels of recursion in the point interpolation
Returns:
addCurveKeyFrames
-
theFrameLists
-
startLocation
Adds keyframes onto the keyframe lists provided so that the keyframed parts begin their animation at start location and move in an arc to their previously defined start position
Parameters:
-
theFrameLists
Object ListA list of keyframe lists describing the movement of 3d models
-
startLocation
Vector3The desired new start location of the 3d models in the animation
Returns:
addDisplacement
-
movTree
-
partFrames
-
it
Given an tree representation of the movement of parts in an assembly sequence, an array of Objects each associating a list of keyframes with a threeJS mesh object and aLinkcolor string, and the index of the keyframe associated with the tree's root node, displaces the movement line points associated with that particular part of the assembly to match the displacement of the model
Parameters:
-
movTree
ObjectTree of nested objects representing the movement of each subassembly in it's assembly sequence
-
partFrames
ArrayAn array of Objects each associating a list of keyframes with a threeJS mesh object and a string
-
it
ObjectThe index of the keyframe associated with the root node of movTree. Used internally. For external use, apply 0.
Returns:
addGrid
-
theSize
-
theDivs
Adds a simple square grid of width equal to theSize and a number of lines equal to theDivs at Y=-1000
Parameters:
-
theSize
IntThe desired grid width
-
theDivs
IntThe desired number of lines per side of the grid
Returns:
addGrid
-
theRad
-
theBot
-
theTop
-
theX
-
theZ
-
slices
-
stacks
-
theColor
Adds a simple vertical column with a radius of theRad, a base Y value of theBot, a top terminating at theTop, an x and z position equal to theX and theZ, a line color of theColor, a number of vertical segmentations equal to stacks, and a number of radial segmentations equal to slices
Parameters:
-
theRad
FloatThe desired radius of the column
-
theBot
FloatThe desired bottom y value of the column
-
theTop
FloatThe desired top y value of the column
-
theX
FloatThe desired x value of the column
-
theZ
FloatThe desired z value of the column
-
slices
FloatThe desired number of radial segmentations
-
stacks
FloatThe desired z value of vertical segmentations
-
theColor
FloatThe desired color of the column
Returns:
addLines
-
movTree
-
parentNode
-
theScene
Given an tree representation of the movement of parts in an assembly sequence, the parent node of that node, and a threeJS scene object, inserts a line for each subassembly path along the path of movement
Parameters:
-
movTree
ObjectTree of nested objects representing the movement of each subassembly in it's assembly sequence
-
parentNode
ObjectUsed for internal use. Null should be applied for external use.
-
theScene
Objectthe threeJS scene to which the line representations will be added
Returns:
alignAssemblyCenter
()
Void
Aligns the camera to look at the point at the average of the centers of all the parts bounding boxes
Returns:
animate
-
partFrames
-
time
-
timeWarp
Given an array of objects (each containing a threeJS mesh object and an array of keyFrame objects), and two floating points "time" and "timeWarp", will animate each mesh in the array along the keyframes in their associate objects according to the given "time" and returns the new time as given by the standard time step multiplied by "timeWarp"
Parameters:
-
partFrames
ArrayList of objects relating threeJS mesh objects with their respective keyframe arrays
-
time
FloatThe time to be used when interpolating keyFrames for the models
-
timeWarp
FloatThe coefficeint to be applied to the timestep in the animation
Returns:
The new value of time in the animation
arrayToString
-
buf
Converts an arraybuffer into a string of equivalent binary content
Parameters:
-
buf
ArraybufferThe arraybuffer
Returns:
bindPartsToKeyFrames
-
theKeyFrameLists
-
theParts
Combines a given array of objects (each associating an array of keyframes to name) with a given array of objects (each associating a threeJS mesh with a name), creating an array of objects with keyFrame arrays and threeJS meshes associated with the same name
Parameters:
-
theKeyFrameLists
ArrayAn array of objects, each containing an array of keyframe objects called "Frames" and a string property called "Name")
-
theParts
ArrayAn array of objects, each containing a threeJS mesh object called "Mesh" and a string property called "Name"
Returns:
centerGeometry
-
theGeo
Finds the average position of all the vertices in a given threeJS Geometry model.
Parameters:
-
theGeo
ThreeJS Geometry Object
Returns:
A 3d coordinate, with each component being the unweighted average of the corresponding component in each vector in the provided geometry object. If nodeName vertices are present in the object, a zeroed vector is returned.
combineBounds
-
a
-
b
Given two threeJS boundingBox objects, returns the smallest bounding box encompassing the two
Parameters:
-
a
ObjectThe first bounding box
-
b
ObjectThe second bounding box
Returns:
The combined bounds
copyFrame
-
theFrame
Returns a copy of the provided keyframe object
Parameters:
-
theFrame
ObjectA keyFrame object
Returns:
The copy
copyFrameList
-
partFrames
Returns a copy of the provided array of keyframe objects
Parameters:
-
partFrames
ArrayA keyFrame object array
Returns:
The copy
cutOffNames
-
theTree
Given a tree of nested javascript objects (each with a string attribute "Name") and an integer "N", removes the first N characters of each Name attribute
Parameters:
-
theTree
ObjectThe structure containing name data
Returns:
cutoffPartNames
-
partFrames
Accepts an array of objects containing a string property called "Name" removes the first N characters in each string, where N is the first index where any two "Name" properties in the array have different characters.
Parameters:
-
partFrames
Object ArrayAn array of objects, each of which should containin a property called "Name" with a non-null string.
Returns:
flipTheTimes
-
partFrames
Given a jagged array of objects, each object at least possessing a numeric property called "Time", sets each Time property to the greatest Time value in the jagged array minus the origional value, thus effectively reversing the temporal order of each object
Parameters:
-
partFrames
ArrayThe jagged array
Returns:
The greatest "Time" value in the jagged array
flipTreeTime
-
theTree
-
axis
Given a tree of nested javascript objects (each with a float attribute "Time") and a float "N", sets each Time value to N minus that value
Parameters:
-
theTree
ObjectThe structure containing time data
-
axis
FloatThe value used to mirror the time values
Returns:
getChildrenByTag
-
theNode
-
tag
Given an HTML element and a string, returns a list containing all child elements of the given element with a tag equivalent to the given string
Parameters:
-
theNode
HTML ElementThe HTML element whose children are to be searched
-
tag
StringThe string to be used when searching for element children
Returns:
getDepth
-
theTree
Given a tree of nested javascript objects, returns the depth of the tree
Parameters:
-
theTree
ObjectThe object structure
Returns:
The depth of the object
getFirstIntersect
-
theScene
-
theCamera
-
partFrames
Given a threeJS scene object, a threeJS camera object, and an array of objects containing threeJS mesh objects, finds the first mesh in the scene which is intersected the ray extending through the center of the camera's field of vision. If this mesh is in the provided array of objects, then that object is returned, otherwise null is returned instead
Parameters:
-
theScene
ObjectThe threeJS scene object in which intersections should be tested
-
theCamera
ObjectThe threeJS camera object to be used to test for ray intersections
-
partFrames
ArrayAn array containing a series of objects, each of which contain a threeJS mesh object (under the property "Mesh") to be tested for intersections
Returns:
The intersecting mesh (or null in case of no valid intersection)
getGeometries
-
theSTLs
Accepts a list of binary stl buffer objects and returns a corresponding list of ThreeJS objects.
Parameters:
-
theSTLs
Buffer Object List
Returns:
getGlobBounds
-
a
-
b
Given two threeJS boundingBox objects, returns the smallest bounding box encompassing the two
Parameters:
-
a
ObjectThe first bounding box
-
b
ObjectThe second bounding box
Returns:
The combined bounds
getLongestTime
-
timeTree
Given a tree of nested objects, returns the highest "Time" value from all the nodes
Parameters:
-
timeTree
ObjectThe tree of time values
Returns:
The highest time value in the tree
getMov
-
theTree
Given a jQuery Object, will return the first child with the tag "Moving" of the first child with the tag "Install" of the object. If no such child exists, null is returned.
Parameters:
-
theTree
JQuery ObjectThe jQuery object to be accessed
Returns:
The resulting child
getMovement
-
theTree
-
myX
-
myY
-
myZ
-
myTime
Given a jQuery object derived from parsing an XML document, extracts all information relevant to part movement and composes it into an identically structured tree of nested javascript objects which is then returned
Parameters:
-
theTree
JQuery ObjectThe jQuery object to be parsed over
-
myX
FloatThe X position of the subassembly represented by the root node of theTree
-
myY
FloatThe Y position of the subassembly represented by the root node of theTree
-
myZ
FloatThe Z position of the subassembly represented by the root node of theTree
-
myTime
FloatThe time value of the subassembly represented by the root node of theTree
Returns:
The root node of the tree of extracted movement data
getNameList
-
TimeTree
-
SpaceTree
-
NameTree
Given a three trees of nested javascript objects, one holding time data, one holding movement data, and one holding part name data
Parameters:
-
TimeTree
ObjectThe root node of the tree containing time data
-
SpaceTree
ObjectThe root node of the tree containing movement data
-
NameTree
ObjectThe root node of the tree containing name data
Returns:
The root node of the resulting tree
getNames
-
theTree
Given a jQuery object derived from parsing an XML document, extracts all part name information and composes it into an identically structured tree of nested javascript objects which is then returned
Parameters:
-
theTree
JQuery ObjectThe jQuery object to be parsed over
Returns:
The root node of the tree of extracted name data
getPartCenter
-
a
Given an object, containing a threeJS mesh object as "Mesh", will return the center of the mesh's bounding box
Parameters:
-
a
ObjectThe object containing the threeJS mesh object
Returns:
The center of the mesh's bounding box, represented as a threeJS Vector3 object
getPartNameCutoff
-
partFrames
Accepts an array of objects containing a string property called "Name" and returns the first index where any two "Name" properties in the array have different characters.
Parameters:
-
partFrames
Object ArrayAn array of objects, each of which should containin a property called "Name" with a non-null string.
Returns:
The first index where any two "Name" properties in the array are different.
getPartNames
-
parts
Given a list of parts, returns a list of the names of each part
Parameters:
-
parts
Part ListThe list of part objects.
Returns:
getRandomUTF
-
selectSpace
Given a staggered array of integer pairs, returns a random UTF character with a UTF value within one of the given integer ranges (inclusive)
Parameters:
-
selectSpace
ArrayA staggered array of integer range limits
Returns:
getRef
-
theTree
Given a jQuery Object, will return the first child with the tag "Reference" of the first child with the tag "Install" of the object. If no such child exists, null is returned.
Parameters:
-
theTree
JQuery ObjectThe jQuery object to be accessed
Returns:
The resulting child
getStdMaterial
()
Object
Returns a normal material for lines if the global variable "standard" is false. If "standard" is set to true, returns a chromadepth material instead.
Returns:
getStdMaterial
()
Object
Returns a normal material for meshes if the global variable "standard" is false. If "standard" is set to true, returns a chromadepth material instead.
Returns:
getTimes
-
theTree
-
parentTime
Given a jQuery object derived from parsing an XML document, extracts all information relevant to installation timing and composes it into an identically structured tree of nested javascript objects which is then returned
Parameters:
-
theTree
JQuery ObjectThe jQuery object to be parsed over
-
parentTime
FloatThe time value of the subassembly represented by the root node of theTree
Returns:
The root node of the tree of extracted time data
getTreeNames
-
tree
-
regTreeNames
-
fstTreeNames
Given a tree of nested javascript objects (each with a string attribute "Name"), and two lists, regTreeNames and fstTreeNames, inserts all regular part names into regTreeNames and inserts all fastener part names into fstTreeNames
Parameters:
-
tree
Object -
regTreeNames
String List -
fstTreeNames
String List
Returns:
grab
-
theTree
-
theMember
Given a jQuery object and a string, returns the first child of the given element with a tag equivalent to the given string.
Parameters:
-
theTree
JQuery ObjectThe jQuery object whose child is to be returned
-
theMember
StringThe name of the tag being searched
Returns:
The first child with the given tag. If such a child does not exist, null is returned.
grabInd
-
theTree
-
theMember
-
theIndex
Given a jQuery object and an integer "N", returns the Nth child of the given element with the given tag.
Parameters:
-
theTree
JQuery ObjectThe jQuery object whose child is to be returned
-
theMember
StringThe name of the tag being searched
-
theIndex
StringThe ordinal of the matching child to be returned
Returns:
The child meeting the tag and ordinal requirement. If such a child does not exist, null is returned.
grabInterp
-
frameList
-
time
Given a list of keyframes and a time quantity, returns a keyframe object interpolating between the two temporally closest keyframes. In cases where the provide time is beyond the range of times represented by the list, returns the closest keyframe
Parameters:
-
frameList
ArrayA list of keyframes. Must be organized from least time value to greatest time value
-
time
FloatFloating-point representation of what time in the keyframe progression the interpolation should occur
Returns:
The interpolated keyframe
hasNaN
-
theFrame
Returns true if any position component of the given keyframe object is NaN
Parameters:
-
theFrame
ObjectA keyFrame object
Returns:
hide
-
theNode
Given an HTML element, sets the style attributes of that element to hide it's contents.
Parameters:
-
theNode
HTML ElementThe HTML element to be hidden.
Returns:
hideChildren
-
theNode
Given an HTML element, sets the style attributes of that element's children to hide their contents.
Parameters:
-
theNode
HTML ElementThe HTML element whose children are to be hidden.
Returns:
initAxisLines
()
Void
Initializes the axis lines for the bottom-left of the screen
Returns:
insertTreequenceHTML
-
theTree
-
parentElement
Given a tree of nested javascript objects and an html element, inserts the contents of the root node of the given tree as an html element into the given element. Returns the name of the generated node.
Parameters:
-
theTree
ObjectThe tree structure
-
parentElement
HTML ElementThe html element to contain the node information
Returns:
interp
-
pointList
-
T
Performs a bezier curve interpolation of the control points in pointlist given the time value T, and returns a ThreeJS Vector3 object with the interpolated coordinates.
Parameters:
-
pointList
Vector3 ArrayA list of control points for use in interpolation.
-
T
FloatA normalized value for use as a time value in interpolation.
Returns:
interpolate
-
keyFrame1
-
keyFrame2
-
proportion
Given two keyFrames and a normalized float "proportion", returns an interpolation between the two keyframes with a weight towards the second keyframe proportional to "proportion"
Parameters:
-
keyFrame1
ObjectThe earlier keyFrame
-
keyFrame2
ObjectThe later keyFrame
-
proportion
FloatA normalized value representing what proportion of the path of interpolation is between the result and the earlier keyFrame
Returns:
The jagged array of keyFrame objects
loadParts
()
Void
Called internally upon every recieved fileload event. Checks if every file reader in the array "fileReaders" has fully read each of their files. If so, then the function converts all recieved stl files into threeJS models and executes "renderParts".
Returns:
loadParts
()
Void
Called internally upon every recieved fileload event. Checks if every file reader in the array "fileReaders" has fully read each of their files. If so, then the function converts all recieved stl files into threeJS models and executes "renderParts".
Returns:
longestTimeFromFrames
-
partFrames
Combines a jagged array of objects, each object at least possessing a numeric property called "Time", returns the value of the greatest "Time" property
Parameters:
-
partFrames
ArrayThe jagged array
Returns:
The greatest "Time" value in the jagged array
makeArcPointList
-
startPoint
-
center
-
endPoint
-
resolution
Returns a list of 2^(resolution+1) points which trace an arc beginning at startPoint, terminating at endpoint, and centered around center
Parameters:
-
startPoint
Vector3The starting point of the arc
-
center
Vector3The point which the generated arc should be centered on
-
endPoint
Vector3The ending point of the arc
-
resolution
IntThe desired levels of recursion in the point interpolation
Returns:
makeFastenerKeyFrames
-
theFst
-
runningList
-
currentFrameList
Creates a keyframe list for the given fastener object and adds it to currentFrameList
Parameters:
-
theFst
ObjectThe object representation of the fastener being keyframed
-
runningList
Object ListThe current running list of keyframes
-
currentFrameList
Object ListThe list of part-keyframe list objects
Returns:
makeKeyFrames
-
theTree
-
runningList
-
currentFrameList
Given a tree representation of the assembly process through nested javascript objects, returns an array of keyframe array objects, with each keyframe array object being a representation of the movement of each part in the tree representation throughout the assembly proceess, with a list of keyframe objects and a given part name
Parameters:
-
theTree
ObjectTree representation of the assembly process through nested javascript objects
-
runningList
ArrayInternally used variable. Should be an empty array for outside use.
-
currentFrameList
ArrayInternally used variable. Should be an empty array for outside use.
Returns:
The jagged array of keyFrame objects
mergeTrees
-
TimeTree
-
SpaceTree
-
NameTree
Given a three trees of nested javascript objects, one holding time data, one holding movement data, and one holding part name data
Parameters:
-
TimeTree
ObjectThe root node of the tree containing time data
-
SpaceTree
ObjectThe root node of the tree containing movement data
-
NameTree
ObjectThe root node of the tree containing name data
Returns:
The root node of the resulting tree
parseStl
-
stl
Converts a given block of ASCII stl data (as an arraybuffer) to a threeJS representation of the geometry. Function courtesy of 'tonylukasavage' from Github, who released this to the public domain.
Parameters:
-
stl
ArraybufferThe ASCII stl data
Returns:
threeJS geometry object
parseStlBinary
-
stl
Converts a given block of binary stl data (as an arraybuffer) to a threeJS representation of the geometry. Function courtesy of 'tonylukasavage' from Github, who released this to the public domain.
Parameters:
-
stl
ArraybufferThe binary stl data
Returns:
threeJS geometry object
rdr_grabExtension
-
theName
Accepts a string and outputs the string of all characters following the final '.' symbol in the string. This is used internally to extract file extensions from file names.
Parameters:
-
theName
StringThe file name to be processed
Returns:
the extension in the given file name. If no extension is found, the 'undefined' value is returned.
rdr_lockChange
-
e
Adds or Removes event listeners for input meant for camera manipulation. Is triggered by a change in the state of the mouse locking or unlocking. The mouse locking results in input listeners being added to the webpage, whereas the unlocking of the mouse results in the removal of appropriate listeners.
Parameters:
-
e
EventThe event that is to be applied to the function by event listeners upon a change in the state of mouselock
Returns:
rdr_manageControls
()
Void
Once called, interprets the current state of registered inputs and manipulates the visualization accordingly, including the accelleration of the camera, as affected by the W,S,A, and D keys, and the rotation of the camera if the F key is depressed and there currently is a highlighted object of interest
Returns:
rdr_mouseMoved
-
e
Changes the orientation of the camera based off of the mouse movement contained in the supplied mouse movement event. X-axis movement corresponds to change in the yaw of the camera whereas Y-axis movement corresponds to a change in the pitch of the camera.
Parameters:
-
e
EventThe mouse movement event to be supplied to the function by a mouse movement event listener on the web page
Returns:
rdr_recieveData
-
theXMLFile
-
theSTLFiles
The function which handles the actual rendering of the solution file animation and loading in the models
Parameters:
-
theXMLFile
String -
theSTLFiles
Object
Returns:
rdr_registerDown
-
e
Accepts a key press event and, if the key press corresponds to one of the keys used for manipulating the view, sets the proper components of "inputState" to true.
Parameters:
-
e
EventThe key down event to be supplied to the function by a key down event listener on the web page
Returns:
rdr_registerUp
-
e
Accepts a key press release and, if the key release corresponds to one of the keys used for manipulating the view, sets the proper components of "inputState" to false
Parameters:
-
e
EventThe key up event to be supplied to the function by a key up event listener on the web page
Returns:
rdr_renderParts
()
Void
Called internally by "loadParts". Parses the text stored in "theXML" into a tree structure composed of nested javascript objects and converts that structure into a series of keyframe arrays, each of which are stored alongside their respective parts in "partFrames". Additionally, generates the path lines for each subassembly and inserts those lines into "scene".
Returns:
rdr_showHideTreequence
()
Void
Toggles the display of the HTML div element containing the treequence representation of the assembly.
Returns:
rdr_tryMouseLock
()
Void
Attempts to lock the mouse for camera manupulation
Returns:
readMultipleFiles
-
evt
Accepts a fileinput event, presumably from a file upload event listener, and assigns functions to each file reader listed in the event to be called upon the full loading of that given reader's files
Parameters:
-
evt
EventA fileinput event, to be given by a fileinput event listener
Returns:
readMultipleFiles
-
evt
Accepts a fileinput event, presumably from a file upload event listener, and assigns functions to each file reader listed in the event to be called upon the full loading of that given reader's files
Parameters:
-
evt
EventA fileinput event, to be given by a fileinput event listener
Returns:
render
()
Void
The main portion of the visualization's rendering cycle, managing frame rate, input, camera decelleration, keyframe manipulation, model animation, object highlighting, and informational display.
Returns:
show
-
theNode
Given an HTML element, sets the style attributes of that element to display it's contents.
Parameters:
-
theNode
HTML ElementThe HTML element to be shown.
Returns:
showChildren
-
theNode
Given an HTML element, sets the style attributes of that element's children to display their contents.
Parameters:
-
theNode
HTML ElementThe HTML element whose children are to be shown.
Returns:
showFrame
-
theFrame
Logs the contents of a given keyFrame object, containing numeric properties "X", "Y", "Z", and "Time", to the console as a string.
Parameters:
-
theFrame
Arraythe keyFrame object to be logged
Returns:
showFrames
-
partFrames
Logs the contents of the given jagged array of keyFrame objects, each containing numeric properties "X", "Y", "Z", and "Time", to the console as a string.
Parameters:
-
partFrames
ArrayA jagged array of keyframe objects
Returns:
similarityCutoff
-
theList
Given an array of strings, returns the first index at which at least two of the included strings are different
Parameters:
-
theList
ArrayThe list of strings to be anylized
Returns:
The computed index
swapHiding
-
theNode
Given an html node containing a button, hides all child treequence elements if the button text is not "+" and shows them if it is.
Parameters:
-
theNode
HTML ElementThe html element whose treequence elements are to be manipulated.
Returns:
trim
-
str
Processes a given string to make it parsible for parseStl and returns the results
Parameters:
-
str
StringASCII STL data
Returns:
processed string
updateAxisLines
()
Void
Updates the axis line dispay
Returns:
updateLines
-
movTree
-
parentNode
-
theTime
Given an tree representation of the movement of parts in an assembly sequence, the parent node of that node, and the current time in the animation, updates the ends of the movement lines such that the portion of lines which have already been traversed are not shown
Parameters:
-
movTree
ObjectTree of nested objects representing the movement of each subassembly in it's assembly sequence
-
parentNode
ObjectUsed for internal use. Null should be applied for external use.
-
theTime
Objectthe threeeJS scene to which the line representations will be added
Returns:
vecDesc
-
theVec
Returns a string describing the x, y, and z coordinates of theVec.
Parameters:
-
theVec
Vector3The ThreeJS Vector3 object to be described by the output string
Returns:
whatsIn
-
theTree
Given a jQuery object, returns a full list of all of its children.
Parameters:
-
theTree
JQuery ObjectThe jQuery object whose children should be returned
Returns:
Array of the object's children