autodesk-forge

How can you add text to the Forge Viewer with three.js?

不羁岁月 提交于 2020-01-16 11:11:06
问题 So, I am trying to add TextGeometry to the viewer with Three.js. I am wondering if it is possible to do this, and how you would go about doing it. I have looked on the docs, but none of their solutions seem to be working since the Forge viewer uses R71, and they are far past that now with three.js. I have also tried downloading the R71 examples from Github, but I get an error saying that one of the fonts is not existent even when I have included them with script tags in the html. So, are you

How to add a mesh to forge viewer v6 using Typescript?

我怕爱的太早我们不能终老 提交于 2020-01-07 09:47:44
问题 I need to know how to add meshes to Forge Viewer v6 using Type script. I went through all the topics and articles and it was working with v4. Now when I try the following code: private wallGeometry: THREE.BoxBufferGeometry; drawWalls() { this.wallGeometry = new THREE.BoxBufferGeometry(4000, 4000, 100, 1, 1, 1); console.log('creating wall geometry'); this.wallGeometry = new THREE.BoxBufferGeometry(4000, 4000, 100, 1, 1, 1); console.log('creating wall material'); let wallMaterial = new THREE

Drawing 2D SVG markups using MarkupCore

做~自己de王妃 提交于 2020-01-07 06:54:14
问题 Can you possibly provide a sample similar to https://forge.autodesk.com/cloud_and_mobile/2016/04/markup3d-sample-for-view-data-api.html, but now using the the MarkupCore now included in view3D.js? In particular how to draw and update the SVG graphics on top of the canvas. The source for the sample above seems to be removed from github. 回答1: The source of the markup3D extension has been moved there: https://github.com/Autodesk-Forge/library-javascript-viewer-extensions/tree/master/src/Viewing

How to upload file to storage location in Autodesk Forge using 3-legged Token?

跟風遠走 提交于 2020-01-07 04:10:11
问题 I have genereted accessToken by 3-legged Token, bucketKey and objectName by Create a Storage Location API as shown in this tutorial(step 4). I want to upload file to storage location.My request returns 'OK 200' status, but it not upload file to A360, as I need. Where is the mistake? How to correctly upload file to user's storage location using 3-legged Token? [HttpGet] public JObject UploadFile(string accessToken,string bucketKey,string objectName,string filePath) { var url = String.Format(

How to remove First person tool button from the Forge Navigation Tool bar

自作多情 提交于 2020-01-06 11:47:45
问题 There are some tool button avalible in navigation toolbar Forge viewer. So I want hide only "zoom tool" button and "first person tool" button from the tool bar. I am able to remove zoom tool button from the tool bar using below code : var navTool = this.viewer.toolbar.getControl('navTools'); navTool.removeControl('toolbar-zoomTool'); But I am not able to remove "First Person" tool button from the navigation tool bar. Can anyone help me on this problem? 回答1: Here is a more accurate answer on

Forge Autodesk model's transform matrix

∥☆過路亽.° 提交于 2020-01-06 07:27:11
问题 I would like to know what are the two matrix below and what they are used for : placementTransform (1 x 12) refPointTransform (1 x 16) Does anyone know what they are used ? I think it has to do with translation(Tx, Ty, Tz)/rotation (Rx, Ry, Rz) of 3D objects but there are too many parameters in each vector... 回答1: The placementTransform sets the position-offset and scale of a model during loading. refPointTransform is similar (but contains rotation), but is applied (multiplied) after the

Forge Autodesk model's transform matrix

纵然是瞬间 提交于 2020-01-06 07:27:05
问题 I would like to know what are the two matrix below and what they are used for : placementTransform (1 x 12) refPointTransform (1 x 16) Does anyone know what they are used ? I think it has to do with translation(Tx, Ty, Tz)/rotation (Rx, Ry, Rz) of 3D objects but there are too many parameters in each vector... 回答1: The placementTransform sets the position-offset and scale of a model during loading. refPointTransform is similar (but contains rotation), but is applied (multiplied) after the

Model aggregating in viewer - coordinate issue

这一生的挚爱 提交于 2020-01-06 05:50:09
问题 I am dynamically aggregating models in the Viewer (coming from multiple BIM files). Basically, I initialize the viewer, and then LoadDocument and LoadModel for each model that user chooses to view, dynamically. These are mostly NVC files (what I used for testing), which are sharing the coordinate system. Models getting dynamically loaded and getting 'stitched' correctly. However, coordinate system is getting screwed up when the second model gets loaded - not always but in some cases (in v6.3

Angular 8: Webpack - THREE.js loading twice

╄→гoц情女王★ 提交于 2020-01-05 03:55:10
问题 I'm creating a web app using Angular which integrates the Autodesk forge viewer javscript library. The forge viewer.js library is included in the forge viewer.js itself, which is a customized version of the THREE.js release r71. Because of this, I am seeing some unexpected results in my app: THREE.Object3D.add: object not an instance of THREE.Object3D From a bit of research, this is because THREE.js is being loaded twice into my app. I've tried uninstalling three.js from node_modules, but

Forge ARKit: Cannot load model in Unity

时光总嘲笑我的痴心妄想 提交于 2019-12-31 05:40:50
问题 With the latest ForgeARKit-update-6-2018.1, I was trying to load my model in Unity, with the sample Unity scene ' loadAtStartup '. I can successfully load the sample models from 'Sandbox', but I couldn't load my model, which was uploaded through script ' test-2legged '. Error message shows 504, it seems not reaching the service: AsyncRequestCompleted The remote server returned an error: (504) Gateway Time-out. UnityEngine.Debug:Log(Object) Autodesk.Forge.ARKit.RequestQueueMgr