LitDev Extension API
LD3DView
![](images/IntellisenseObject.png)
3D Visualisation in the GraphicsWindow.
Coordinates have the following directions and have no correspondence to the GraphicsWindow coordinates.
X - Left(-) to Right(+)
Y - Down(-) to Up(+)
Z - Far(-) to Near(+)
For more details on the underlying methods see http://msdn.microsoft.com/en-us/library/ms747437%28v=vs.90%29.aspx
Several of the AddShape methods use HelixToolkit (recompiled and slightly modified for SmallBasic) http://helixToolkit.codeplex.com
Also see LDVector for vector algebra methods.
AddAmbientLight(shapeName,colour)
![](images/IntellisenseMethod.png)
Add an ambient light source.
shapeName The 3DView object.
colour The light colour.
returns The 3DView Light name.
AddArrow(shapeName,length,diameter,arrowLength,arrowDiameter,divisions,colour,materialType)
![](images/IntellisenseMethod.png)
Add an arrow geometry object pointing up starting at (0,0,0).
shapeName The 3DView object.
length The length of the arrow.
diameter The diameter of the arrow shaft.
arrowLength The length of the arrow head.
arrowDiameter The diameter of the arrow head.
divisions The number of divisions for the arrow (default 18).
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddBackImage(shapeName,geometryName,textures,imageName,materialType)
![](images/IntellisenseMethod.png)
Add an image to a back surface of geometry object.
A geometry 'skin' may contain several segment images in one image.
shapeName The 3DView object.
geometryName The geometry object.
textures A space or colon deliminated list of the texture coordinates for each node.
Each node has 2 values between 0 and 1 indicating the x,y image mapping to the node.
The may be defaulted to "" if the texture has previously been set.
imageName The image to load to the geometry.
Value returned from ImageList.LoadImage or local or network image file.
A colour or gradient brush can also be used here.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - additional specular highlights.
AddCone(shapeName,baseRadius,topRadius,height,divisions,colour,materialType)
![](images/IntellisenseMethod.png)
Add a cone geometry object pointing up with base centred at (0,0,0).
Note a cylinder is a cone with baseRadius = topRadius.
shapeName The 3DView object.
baseRadius The radius of the base.
topRadius The radius of the top if truncated (default 0).
height The height of the cone.
divisions The number of divisions for the cone (default 18).
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddCube(shapeName,sideLength,colour,materialType)
![](images/IntellisenseMethod.png)
Add a cube geometry object centered on (0,0,0).
shapeName The 3DView object.
sideLength The side length of the cube.
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddDirectionalLight(shapeName,colour,xDir,yDir,zDir)
![](images/IntellisenseMethod.png)
Add a directional light source.
shapeName The 3DView object.
colour The light colour.
xDir The x direction of the light.
yDir The y direction of the light.
zDir The z direction of the light.
returns The 3DView Light name.
AddDodecahedron(shapeName,sideLength,colour,materialType)
![](images/IntellisenseMethod.png)
Add a dodecahedron geometry object centred at (0,0,0).
shapeName The 3DView object.
sideLength The Length of the edges of the dodecahedron.
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddEllipsoid(shapeName,radiusX,radiusY,radiusZ,divisions,colour,materialType)
![](images/IntellisenseMethod.png)
Add an ellipsoid geometry object centred at (0,0,0).
shapeName The 3DView object.
radiusX The X radius of the ellipsoid.
radiusY The Y radius of the ellipsoid.
radiusZ The Z radius of the ellipsoid.
divisions The ellipsoid divisions, default 10 (affects number of triangles and smoothness).
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddGeometry(shapeName,points,indices,normals,colour,materialType)
![](images/IntellisenseMethod.png)
Add a geometry object.
shapeName The 3DView object.
points A space or colon deliminated list of point coordinates.
indices A space or colon deliminated list of indices for each triangle (counter-clockwise for outward face).
normals An optional space or colon deliminated list of the outward normals for each node or "".
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddIcosahedron(shapeName,radius,colour,materialType)
![](images/IntellisenseMethod.png)
Add an icosahedron geometry object centred at (0,0,0).
shapeName The 3DView object.
radius The radius of the icosahedron.
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddImage(shapeName,geometryName,textures,imageName,materialType)
![](images/IntellisenseMethod.png)
Add an image to a geometry object.
A geometry 'skin' may contain several segment images in one image.
shapeName The 3DView object.
geometryName The geometry object.
textures A space or colon deliminated list of the texture coordinates for each node.
Each node has 2 values between 0 and 1 indicating the x,y image mapping to the node.
The may be defaulted to "" if the texture has previously been set.
imageName The image to load to the geometry.
Value returned from ImageList.LoadImage or local or network image file.
A colour or gradient brush can also be used here.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - additional specular highlights.
AddMaterial(shapeName,geometryName,colour,materialType)
![](images/IntellisenseMethod.png)
Add a material to an existing geometry.
shapeName The 3DView object.
geometryName The geometry object.
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
AddOctahedron(shapeName,sideLength,height,colour,materialType)
![](images/IntellisenseMethod.png)
Add an octahedron geometry object centred at (0,0,0).
shapeName The 3DView object.
sideLength The Length of the edges of the octahedron.
height The half height of the octahedron.
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddPipe(shapeName,length,innerDiameter,outerDiameter,divisions,colour,materialType)
![](images/IntellisenseMethod.png)
Add a pipe geometry object pointing up with base centred at (0,0,0).
shapeName The 3DView object.
length The length of the pipe.
innerDiameter The inner diameter of the pipe.
outerDiameter The outer diameter of the pipe.
divisions The number of divisions for the pipe (default 18).
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddPointLight(shapeName,colour,xPos,yPos,zPos,range)
![](images/IntellisenseMethod.png)
Add a non-directional point light source.
shapeName The 3DView object.
colour The light colour.
xPos The x position of the light.
yPos The y position of the light.
zPos The z position of the light.
range The light range.
returns The 3DView Light name.
AddPyramid(shapeName,sideLength,height,colour,materialType)
![](images/IntellisenseMethod.png)
Add a pyramid geometry object pointing up with base centred at (0,0,0).
shapeName The 3DView object.
sideLength The radius of the base.
height The height of the cone.
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddRectangle(shapeName,width,height,colour,materialType)
![](images/IntellisenseMethod.png)
Add a rectangle geometry object centred at (0,0,0).
shapeName The 3DView object.
width The width of the rectangle.
height The height of the rectangle.
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddRevolute(shapeName,path,divisions,colour,materialType)
![](images/IntellisenseMethod.png)
Add a revolute geometry object. This is a surface starting at (0,0,0) and pointing up.
Its shape is defined by a set points (Y,Z) where Y is the vertical distance along the surface from 0 and Z is the radius of revolution.
shapeName The 3DView object.
path A space or colon deliminated list of 2D point coordinates describing the revolute shape.
divisions The radial divisions, default 10 (affects number of triangles and smoothness).
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddSphere(shapeName,radius,divisions,colour,materialType)
![](images/IntellisenseMethod.png)
Add a sphere geometry object centred on (0,0,0).
shapeName The 3DView object.
radius The sphere radius.
divisions The sphere divisions, default 10 (affects number of triangles and smoothness).
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddSpotLight(shapeName,colour,xPos,yPos,zPos,xDir,yDir,zDir,angle,range)
![](images/IntellisenseMethod.png)
Add a directional spot light source.
shapeName The 3DView object.
colour The light colour.
xPos The x position of the light.
yPos The y position of the light.
zPos The z position of the light.
xDir The x direction of the light.
yDir The y direction of the light.
zDir The z direction of the light.
angle The cone angle the light in degrees.
range The light range.
returns The 3DView Light name.
AddTetrahedron(shapeName,sideLength,colour,materialType)
![](images/IntellisenseMethod.png)
Add a tetrahedron geometry object centred at (0,0,0).
shapeName The 3DView object.
sideLength The Length of the edges of the tetrahedron.
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddTorus(shapeName,radius,diameter,divisions,colour,materialType)
![](images/IntellisenseMethod.png)
Add a torus geometry object centred at (0,0,0).
shapeName The 3DView object.
radius The radius of the torus.
diameter The diameter of the tube.
divisions The torus divisions, default 10 (affects number of triangles and smoothness).
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddTube(shapeName,path,diameter,divisions,colour,materialType)
![](images/IntellisenseMethod.png)
Add a tube geometry object.
shapeName The 3DView object.
path A space or colon deliminated list of 3D point coordinates.
diameter The tube diameter.
divisions The tube radial divisions, default 10 (affects number of triangles and smoothness).
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
returns The 3DView Geometry name.
AddView(width,height,performance)
![](images/IntellisenseMethod.png)
Add a 3DView (GraphicsWindow shape).
width The width of the 3DView.
height The height of the 3DView.
performance A flag to favour speed over quality "True" or "False".
"True" removes visual clipping (clip 3DView to input width and height), hit-testing (unused) and anti-aliasing (not needed).
returns The 3DView viewport3D name.
AnimateRotation(shapeName,geometryName,xDir,yDir,zDir,startAngle,endAngle,duration,repeats)
![](images/IntellisenseMethod.png)
Animate a geometry rotation about an axis vector.
This uses the second rotation, the first is still available for another axis rotation.
shapeName The 3DView object.
geometryName The geometry object to animate.
xDir X direction of vector to rotate about.
yDir Y direction of vector to rotate about.
zDir Z direction of vector to rotate about.
startAngle The starting angle in degrees (e.g. 0).
endAngle The final angle in degrees (e.g. 360).
duration The animation duration (time in sec).
repeats The number of times to repeat the animation (-1 is for ever).
AnimateRotation2(shapeName,geometryName,xDir,yDir,zDir,startAngle,endAngle,duration,repeats)
![](images/IntellisenseMethod.png)
Animate a geometry rotation about an axis vector.
This uses the third rotation, the first is still available for another axis rotation.
shapeName The 3DView object.
geometryName The geometry object to animate.
xDir X direction of vector to rotate about.
yDir Y direction of vector to rotate about.
zDir Z direction of vector to rotate about.
startAngle The starting angle in degrees (e.g. 0).
endAngle The final angle in degrees (e.g. 360).
duration The animation duration (time in sec).
repeats The number of times to repeat the animation (-1 is for ever).
AnimateTranslation(shapeName,geometryName,x,y,z,duration)
![](images/IntellisenseMethod.png)
Animate a geometry translation.
shapeName The 3DView object.
geometryName The geometry object to animate.
x X position to animate to.
y Y position to animate to.
z Z position to animate to.
duration The animation duration (sec).
AutoControl(pitchRoll,shift,keyDistance,speed)
![](images/IntellisenseMethod.png)
Set auto control of the camera.
This mode is a general purpose camera control, mainly for moving within a scene (a flyby mode).
Move forwards and backwards with mouse wheel (faster with Shift down, slower with Control down).
Yaw and Pitch camera moving with left mouse button.
Yaw with A,D or Left,Right keys, move forwards and backwards with W,S or Up,Down keys.
Roll camera moving with right mouse button.
Double left click an object to center it (Centre of rotation).
Double right click to reset the up direction to Y.
Yaw and Pitch scene moving with Shift and left mouse button after selecting an object to rotate scene about.
X, Y, Z keys change the view direction and up direction to face in these directions towards (0,0,0), with Shift then the negative direction.
pitchRoll Allow pitch and roll movement, "True" or "False".
shift Allow the Shift/Control key modifiers for mouse control, "True" or "False".
keyDistance The distance to view the scene from using keys, (0 prevents the X,Y,Z key shortcuts, -1 also prevents the A,D,W,S and arrow keys).
speed Forwards and backwards speed multiplier (default 1).
AutoControl2(keyDistance,speed)
![](images/IntellisenseMethod.png)
Set auto control of the camera.
This mode is mainly to rotate and view a 3D scene rather than move through the scene (an inspection mode).
Zoom in or out with mouse wheel (faster with Shift down, slower with Control down).
Pan left/right with A,D or Left,Right keys, pan up/down with W,S or Up,Down keys.
Double left click an object to center it (Centre of rotation).
Double right click to reset the up direction to Y.
Yaw and Pitch scene moving with left mouse button after selecting an object to rotate scene about.
Roll scene moving with right mouse button.
X, Y, Z keys change the view direction and up direction to face in these directions towards selected center, with Shift then the negative direction.
keyDistance The distance to view the scene from using keys, (0 prevents the X,Y,Z key shortcuts).
speed Forwards and backwards speed multiplier (default 1).
BoundingBox(shapeName,geometryName)
![](images/IntellisenseMethod.png)
Get the bounding box extent of a geometry.
This is the current position (after any transformations).
shapeName The 3DView object.
geometryName The geometry object.
returns An array of dimensions or "FAILED".
array[1] = sizeX (width)
array[2] = sizeY (height)
array[3] = sizeZ (depth)
array[4] = X (Xmin)
array[5] = Y (Ymin)
array[6] = Z (Zmin)
CameraProperties(shapeName,nearDistance,farDistance,angle)
![](images/IntellisenseMethod.png)
Set the angle of view, near and far clipping distances.
These are all of the fundamental perspective camera properties.
shapeName The 3DView object.
nearDistance The near clipping distance (can improve near object e.g. wall hit detection).
A negative value is 0.001 (default is 0.125).
farDistance The far clipping distance (can improve performance).
A negative value is infinity (default).
angle The view angle cone of the camera in degrees (affects perspective vanishing point).
If this is negative, then an Orthographic (no perspective) camera is used with view width set to -angle).
CloneObject(shapeName,geometryName)
![](images/IntellisenseMethod.png)
Create a complete copy of a geometry object and all of its properties.
shapeName The 3DView object.
geometryName The object to copy's name.
returns The new copied 3DView object name.
Freeze(shapeName,geometryName)
![](images/IntellisenseMethod.png)
Freeze a geometry object to improve performance a bit - it cannot then be modified in any way.
shapeName The 3DView object.
geometryName The object to freeze.
GetCameraDirection(shapeName)
![](images/IntellisenseMethod.png)
Get the camera direction.
shapeName The 3DView object.
returns An array of the camera direction vector.
GetCameraPosition(shapeName)
![](images/IntellisenseMethod.png)
Get the camera position.
shapeName The 3DView object.
returns An array of the camera position coordinates.
GetCameraUpDirection(shapeName)
![](images/IntellisenseMethod.png)
Get the camera up direction.
shapeName The 3DView object.
returns An array of the camera up direction vector.
GetOffset(shapeName,geometryName)
![](images/IntellisenseMethod.png)
Get the transformed offset (translation) position of an existing geometry.
shapeName The 3DView object.
geometryName The geometry object.
returns An array of the offset position or "FAILED".
array[1] = X (Xoffset)
array[2] = Y (Yoffset)
array[3] = Z (Zoffset)
GetOriginPosition(shapeName,geometryName)
![](images/IntellisenseMethod.png)
Get the transformed (current) position of the origin (0,0,0) point when created from an existing geometry.
shapeName The 3DView object.
geometryName The geometry object.
returns An array of the transformed position or "FAILED".
array[1] = X (Xorigin)
array[2] = Y (Yorigin)
array[3] = Z (Zorigin)
GetPosition(shapeName,geometryName)
![](images/IntellisenseMethod.png)
Get the transformed (current) center position of an existing geometry.
shapeName The 3DView object.
geometryName The geometry object.
returns An array of the transformed position or "FAILED".
array[1] = X (Xcen)
array[2] = Y (Ycen)
array[3] = Z (Zcen)
HitTest(shapeName,x,y)
![](images/IntellisenseMethod.png)
Perform a hit test in the 3DView.
A negative value for the coordinates defaults to the screen centre (camera view).
shapeName The 3DView object.
x The x coordinate in the GraphicsWindow coordinates within the 3DView.
y The y coordinate in the GraphicsWindow coordinates within the 3DView.
returns An array with the hit object name and its distance or "" for no hit.
LastRotationCompleted
![](images/IntellisenseProperty.png)
The last completed rotation animation geometry object.
LastTranslationCompleted
![](images/IntellisenseProperty.png)
The last completed translation animation geometry object.
LoadModel(shapeName,fileName)
![](images/IntellisenseMethod.png)
Load geometry models from a file.
Supported formats include 3ds, lwo, obj, objz, stl and off.
shapeName The 3DView object.
fileName The file to load.
Often image files etc are also required with the same name in the same folder.
returns An array with the added geometry names.
ModifyObject(shapeName,geometryName,action)
![](images/IntellisenseMethod.png)
Perform an action on a light or geometry object.
shapeName The 3DView object.
geometryName The geometry or light name.
action The action to perform.
The allowed actions are:
"X" remove
"H" hide
"S" show
MoveCamera(shapeName,yaw,pitch,roll,move)
![](images/IntellisenseMethod.png)
Move the camera view direction and position.
shapeName The 3DView object.
yaw The Left/Right rotation in degrees (Yaw).
pitch The Up/Down rotation in degrees (Pitch).
roll Spin view about view direction in degrees (Roll).
move The Forward/Backward movement in device coordinates (along the view direction).
QueuedRotationCompleted
![](images/IntellisenseProperty.png)
The number of currently queued completed rotation animations.
QueuedTranslationCompleted
![](images/IntellisenseProperty.png)
The number of currently queued completed translation animations.
ResetCamera(shapeName,xPos,yPos,zPos,xDir,yDir,zDir,xUp,yUp,zUp)
![](images/IntellisenseMethod.png)
Reset the camera position, view direction and up vector (optional).
shapeName The 3DView object.
xPos The x position of the camera.
yPos The y position of the camera.
zPos The z position of the camera.
xDir The x direction of the camera.
yDir The y direction of the camera.
zDir The z direction of the camera.
xUp The optional x up direction of the camera or "".
yUp The optional y up direction of the camera or "".
zUp The optional z up direction of the camera or "".
ResetMaterial(shapeName,geometryName,colour,materialType)
![](images/IntellisenseMethod.png)
Reset the material for an existing geometry.
shapeName The 3DView object.
geometryName The geometry object.
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
ReverseNormals(shapeName,geometryName)
![](images/IntellisenseMethod.png)
Reverse the outward normals for a geometry.
For example, make the inside surface of a sphere the visible surface instead of the outside surface (skydome).
shapeName The 3DView object.
geometryName The geometry object to reverse outward normals.
RotateGeometry(shapeName,geometryName,x,y,z,angle)
![](images/IntellisenseMethod.png)
Rotate a geometry object about its centre.
shapeName The 3DView object.
geometryName The geometry object.
x X direction of vector to rotate about.
y Y direction of vector to rotate about.
z Z direction of vector to rotate about.
angle An angle in degrees to rotate.
RotateGeometry2(shapeName,geometryName,x,y,z,angle)
![](images/IntellisenseMethod.png)
Rotate a geometry object about its centre (a second rotation).
shapeName The 3DView object.
geometryName The geometry object.
x X direction of vector to rotate about.
y Y direction of vector to rotate about.
z Z direction of vector to rotate about.
angle An angle in degrees to rotate.
RotateGeometry3(shapeName,geometryName,x,y,z,angle)
![](images/IntellisenseMethod.png)
Rotate a geometry object about its centre (a third rotation).
shapeName The 3DView object.
geometryName The geometry object.
x X direction of vector to rotate about.
y Y direction of vector to rotate about.
z Z direction of vector to rotate about.
angle An angle in degrees to rotate.
RotationCompleted
![](images/IntellisenseEvent.png)
Event when a rotation animation is completed.
ScaleGeometry(shapeName,geometryName,scaleX,scaleY,scaleZ)
![](images/IntellisenseMethod.png)
Scale (zoom) a geometry object about its centre.
shapeName The 3DView object.
geometryName The geometry object.
scaleX X scale factor.
scaleY Y scale factor.
scaleZ Z scale factor.
SetBackMaterial(shapeName,geometryName,colour,materialType)
![](images/IntellisenseMethod.png)
Set the back face material for an existing geometry.
shapeName The 3DView object.
geometryName The geometry object.
colour A colour or gradient brush for the object.
materialType A material for the object.
The available options are:
"E" Emmissive - constant brightness.
"D" Diffusive - affected by lights.
"S" Specular - specular highlights.
SetBillBoard(shapeName,geometryName)
![](images/IntellisenseMethod.png)
Set an object to rotate to always face the camera.
This uses the 2nd and 3rd rotations.
shapeName The 3DView object.
geometryName The geometry object.
SetCentre(shapeName,geometryName,x,y,z,options)
![](images/IntellisenseMethod.png)
Set the centre for rotation and scale transformations of a geometry.
By default this is the centre of a bounding box for the geometry, often 0,0,0.
The centre is defined in the coordinates used to create the geometry.
It does not have to be within the geometry.
If a coordinate value is set to "", then the default value is used.
shapeName The 3DView object.
geometryName The geometry object.
x The x coordinate of the centre.
y The y coordinate of the centre.
z The z coordinate of the centre.
options Options to control centre setting. Multiples can be set, e.g. "R1R2R3" to set all rotations.
"R1" First rotation transformation
"R2" Second rotation transformation
"R3" Third rotation transformation
"S" Scale transformation
SpecularExponent
![](images/IntellisenseProperty.png)
Get or set the specular exponent used for specular materials (default 5).
SwapUpDirection(shapeName,geometryName)
![](images/IntellisenseMethod.png)
Rotate (swap) the Y and Z direction of a geometry.
This can be useful for geometries created with a Z up convention, coverting it to a Y up direction used by this extension.
shapeName The 3DView object.
geometryName The geometry object.
TranslateGeometry(shapeName,geometryName,dx,dy,dz)
![](images/IntellisenseMethod.png)
Translate (move) a geometry object.
shapeName The 3DView object.
geometryName The geometry object.
dx X direction translation.
dy Y direction translation.
dz Z direction translation.
TranslationCompleted
![](images/IntellisenseEvent.png)
Event when a translation animation is completed.