« Encode Filename When Uploading with View and Data API | Main | View and Data API Tips: how to make viewer full screen »



Feed You can follow this conversation by subscribing to the comment feed for this post.

Александр Усов

How I can Axes?
I write
var axes = new THREE.AxisHelper(20);
And recieve the message:
"Only THREE.Mesh can be rendered by the Firefly renderer. Use THREE.Mesh to draw lines."
It work in three.js but not work with autodesk viewer, why?

Xiaodong Liang

Hi Александр,

Viewer API might have not wrapped this object, while it looks like THREE.AxisHelper is just 3 lines…

You can take a look at our BoundingBox extension, it’s drawing lines, works in the viewer:

some code snippets:

var material = new THREE.LineBasicMaterial({
color: 0xffff00,
//opacity: 1.0,
linewidth: 5


function drawLines(coordsArray, material) {

for (var i = 0; i < coordsArray.length; i+=2) {

var start = coordsArray[i];
var end = coordsArray[i+1];

var geometry = new THREE.Geometry();

geometry.vertices.push(new THREE.Vector3(
start.x, start.y, start.z));

geometry.vertices.push(new THREE.Vector3(
end.x, end.y, end.z));


var line = new THREE.Line(geometry, material);


Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment

Your Information

(Name is required. Email address will not be displayed with the comment.)

February 2017

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28        

Autodesk Blogs


Cloud and Mobile RSS Feed

Related Posts Plugin for WordPress, Blogger...