autodesk-viewer

3D Boolean operations with Three CSG

半腔热情 提交于 2019-12-18 18:31:16
问题 Following the example here: http://learningthreejs.com/blog/2011/12/10/constructive-solid-geometry-with-csg-js/ And using Three.js with https://github.com/chandlerprall/ThreeCSG, I'm trying to do 3D boolean operations on nodes from the model. Like for example if I have a wall with a window, I want to do invert() on that to get just the window. I have a function that returns all the vertices of the polygons of a node, here's an example of vertices of an object without holes https://pastebin

Autodesk Forge Viewer : Does viewer.setThemingColor work on a converted DWG file?

允我心安 提交于 2019-12-14 04:05:09
问题 viewer.setThemingColor works fine for me to change the color of something in a revit to svf file but when i try and use it for a DWG to SVF conversion it does nothing. oViewer.setThemingColor(1604, new THREE.Vector4(0, 1, 1,1)); Note one thing I am assuming is that the dbId that the mouse click does for seletion is the same dbId I need to use for setThemingColor Any pointers would be helpful. 回答1: That should work... Are you sure about you are passing a correct dbId? In fact it works on my

how I can see view points in Autodeskforge

帅比萌擦擦* 提交于 2019-12-13 07:43:24
问题 We have been working on the web based application using AudeskForge , where we are uploading the file ( .rvt,.NWD ) files but we can track the ViewPoint in it. On other hand we can see the ViewPoint when we open files in respective applications (Revit, Navizwork). We have been using audesk-model-derivatives to get the data. I would like to how I can see view points in forge? PS:So idea is to get possibly all data and datapoints from the stand-alone software to webbased forge app. 回答1: Update:

ZoomWindow extension breaks without GUI?

两盒软妹~` 提交于 2019-12-13 07:24:22
问题 Using v2.13 of the viewer, the ZoomWindow extension relies on having the default GUI enabled. Is there a way around this? The load method is: proto.load = function() { var viewer = this.viewer; var toolbar = viewer.getToolbar(true); //var toolbar = viewer.getToolbar ? viewer.getToolbar(true) : undefined; // Init & Register tool this.tool = new namespace.ZoomWindowTool(viewer); viewer.toolController.registerTool(this.tool); // Add the ui to the viewer. this.createUI(toolbar); return true; };

How set transparenty of element in autodesk-viewer?

北战南征 提交于 2019-12-13 04:24:40
问题 I'm trying to set the transparency of an element of a model, but I can't do it. I'm looking for a method that will do this, but the methods I tried did not work. 回答1: Viewer does not really offer anything native/built-in to do this but THREE.js is always your friend in terms of graphical operations so long as you can reference the material of the target element (by its dbid/nodeid) in Viewer: var fragList = viewer.model.getFragmentList(); var fragIds = [] model.getData().instanceTree

When to load custom Panorama extension

有些话、适合烂在心里 提交于 2019-12-13 04:10:00
问题 I am trying to follow this blog post to customize the viewer to look around a model by tilting. When I load this extension from onModelLoadSuccess, it works for some models but crashes the viewer on larger models. If I load it from an event later in the load process, such as GEOMETRY_LOADED, the model partially loads but some objects don't get rendered. Which event is the right one to load this extension from? And is there a way to make it behave on larger models, >50MB? 回答1: Try waiting on

Is it possible to get the name of saved views of nwd models in Forge?

旧时模样 提交于 2019-12-13 03:32:48
问题 I'm aware that it's possible to get the cameras from saved views in the Navisworks models, but it would be great to get the names as well. When uploading a nwd file to a BIM 360 Document Management project these saved views are shown. Is it possible to do this with the Froge viewer as well? Or is this a Document Manager feaure only? Regards Frode 回答1: The saved views in Navisworks files are fetchable with viewpoint names inside the response of the GET:urn/manifest. Here is an example from the

3ds Max textures/custom materials

南笙酒味 提交于 2019-12-13 03:26:23
问题 I read in the Viewer Release Notes: v4.0.1 that Protein Materials tiling patterns (Revit 2019) are now supported. This is great! However, as a 3ds Max user I am curious whether there's any plans to support bitmap-textures or custom materials coming from 3ds Max? That would really generate new possibilities. 回答1: I am not sure about the older version, but as you can see from the following screenshot on a scene created by one of colleagues: There should not be problems on converting the max

Ambien shadows affected by scaling in 3ds Max

ぃ、小莉子 提交于 2019-12-13 03:04:50
问题 We're having some problems displaying ambient shadows with original scaling in 3ds Max. This is a screenshot of a model with correct/original scaling (measure tool measures a 14m wall): This is a screenshot of a model that we have scaled down to around 5% of its original scaling (measure tool measures a 0.7m wall): We have the same viewer setting on both uploads, but as you can see, the ambient shadows only starts displaying when we scale our models down. This relates to all the 3ds Max

How to re-process an existing Autodesk file with updated version?

∥☆過路亽.° 提交于 2019-12-13 03:01:35
问题 We have a scenario where Box(box.com) has multiple versions for same file and we need to update and process the current version of file in our application. Please let me know the process to upload new file version in same bucket and process it. Currently, we are unable to render the updated Autodesk file view. It is still showing the old file view. 回答1: You can simply upload a new version of the file using the same bucketKey/objectKey pair, first make sure that you are using x-ads-force set