autodesk-viewer

clipping planes in forge viewer not able to clip objects with ShaderMaterial

蓝咒 提交于 2019-12-11 04:24:43
问题 I am trying to add custom objects with THREE.ShaderMaterial in forge-viewer, I am able to add and render the objects in forge-viewer's overlayScene . I referred this blog for adding the same. The problem I am facing is: The forge-viewer's clipping planes are not able to clip the custom added objects. If I try to add same object with other material, then clipping planes are able to clip them. I have tried this. But I am getting error that Cannot resolve #include<clipping_planes_pars_vertex

Shader wireframe of an object

百般思念 提交于 2019-12-08 13:48:32
问题 I want to see a wireframe of an object without the diagonals like Currently, I add lines according to the vertices, the problem is after I have several of those I experience a major performance degradation. The examples here are either too new for my version of Three or don't work (I commented there about it). So I want to try to implement a shader instead. I tried to use this shader: https://stackoverflow.com/a/31610464/4279201 but it breaks the shape to parts and I'm getting WebGL errors.

Forge viewer crashes after loading specific model

谁都会走 提交于 2019-12-08 11:48:37
问题 I have been trying to use the forge viewer to load somewhat large model, but it seems like that the viewer crashes after few seconds (3 - 5) of usage. (with typical Aw snap! page). I've had no trouble with other models, but this happens on this specific model on Windows 10, Chrome. I've tested loading in OS X, but it seem to work although it is somewhat slow. My current best guess is that this is happening due to memory overflow in Chrome, but this is not yet certain, because the viewer

Requests throw when using loadModel

社会主义新天地 提交于 2019-12-08 10:44:42
问题 I tried to use a viewer API for using offline data(SVF) . When I called loadModel, any requests sent as follows. https://ase.autodesk.com/adp/v1/analytics/upload https://raas-assets.autodesk.com/StaticContent/BaseAddress?family=protein https://raas-assets.autodesk.com/StaticContent/BaseAddress?family=prism What does this request mean? Is it checking see if data is correct? 回答1: The first one is for is internal to the viewer for properties access. The 2 others are internal for the viewer to

Severe memory leaks in the Autodesk Forge viewer on devices

筅森魡賤 提交于 2019-12-08 06:40:26
问题 I'm developing an Angular/ Typescript application that makes use of the Autodesk Forge viewer to display building models on smartphones and tablets. The application itself runs smoothly, but the problem occurs when I close the application. After closing the application, I notice that hardly any memory gets released, as can be seen in the image below (I close the application around the 8 seconds mark) and after opening the viewer for two or three more times it will run out of memory and crash.

How do I download SVG/SVF for offline viewing with Autodesk Model Forge APIs

怎甘沉沦 提交于 2019-12-08 05:57:25
问题 I am able to accomplish all steps to upload Revit files and translate and load in viewer. I am now trying to download the translated SVG/SVF for offline viewing. I found reference to the following endpoint and tested it out with this: function download(){ var uri = 'https://developer.api.autodesk.com/derivativeservice/v2/derivatives/<<urn>>' ; var authorizationHeader = 'Bearer <<token>>' request.get( { url: uri, headers: { 'Authorization': authorizationHeader, 'Accept-Encoding': 'gzip,

How to resize on object - Autodesk Forge Viewer

情到浓时终转凉″ 提交于 2019-12-06 18:48:30
How can i change size of on object ?? i need to change height of on object For example, we need to change the height of a door or curtain on this code my object disappears let change = function () { const viewer = oViewer; const model = viewer.model; const frags = [ 123, 361, ]; for(let i in frags){ let fragId = frags[i]; // Get mesh with frag id let mesh = viewer.impl.getRenderProxy(model, fragId); // Selection ID let dbId = 1280; // viewer.getSelection()[0] model.getData().instanceTree.enumNodeFragments(dbId, fragId => { mesh.scale.x += 0.5; // mesh.scale.y = 5; // mesh.scale.z = 5; model

setThemingColor only working for leaf node dbIds

非 Y 不嫁゛ 提交于 2019-12-04 05:21:56
问题 From the documentation it looks like you should be able to call setThemingColor with any dbId, but it seems to only work if the id that you pass is a leafnode? Is this correct? Also is there any way to bulk call this method, or is it only one single leaf node at a time? I would like to pass an array of dbId's into the method. 回答1: Yes, it's only working with the leaf nodes in my experience. However, leaf nodes of a parent node can be retrieved in this way: getLeafNodes( model, dbIds ) {

Autodesk Viewer: Suggestions for 2D view of floor view

大憨熊 提交于 2019-12-02 20:19:24
问题 I have a revit file and am able to convert it via the cloud to a svf and view it in the 3D viewer. It works both as conversion of the .rvt file directly and as an export from the navisworks addin exporter. My question: I want the user of my app to also be able to see the floor 2D view as you can in revit. I have looked through all the manifest files and do not see a f2d for the floor view. What do you suggest I use for the 2D view? Note that I will have many drawings to process/view so I

Autodesk Viewer: Suggestions for 2D view of floor view

人走茶凉 提交于 2019-12-02 13:44:28
I have a revit file and am able to convert it via the cloud to a svf and view it in the 3D viewer. It works both as conversion of the .rvt file directly and as an export from the navisworks addin exporter. My question: I want the user of my app to also be able to see the floor 2D view as you can in revit. I have looked through all the manifest files and do not see a f2d for the floor view. What do you suggest I use for the 2D view? Note that I will have many drawings to process/view so I would prefer not to have to export a dwg for each view then convert those. I am hoping there is a special