forge

2019CCPC秦皇岛赛区(重现赛)- I

只谈情不闲聊 提交于 2021-02-11 16:34:45
链接: http://acm.hdu.edu.cn/contests/contest_showproblem.php?pid=1009&cid=872 题意: 在 dota2 中有一个叫做祈求者(Invoker)的英雄,在游戏中他有三个基础技能:冰(Quas),雷(Wex),火(Exort),每施展一个技能就可以获得相应属性的一个法球(element)。 但是祈求者同时最多只能有三个法球,即如果他在有三个法球的状态下又使用了某个法球技能,那么他会获得该法球,并失去之前三个法球中最先获得的一个。 不难得出,祈求者身上的三个法球的 无顺序 组合有 10 种,每一种都对应着一个组合技能: 急速冷却(Cold Snap),无序组合 QQQ,用 Y 表示 幽灵漫步(Ghost Walk),无序组合 QQW,用 V 表示 寒冰之墙(Ice Wall),无序组合 QQE,用 G 表示 电磁脉冲(EMP),无序组合 WWW,用 C 表示 强袭飓风(Tornado),无序组合 QWW,用 X 表示 灵动迅捷(Alacrity),无序组合 WWE,用 Z 表示 阳炎冲击(Sun Strike),无序组合 EEE,用 T 表示 熔炉精灵(Forge Spirit),无序组合 QEE,用 F 表示 混沌陨石(Chaos Meteor),无序组合 WEE,用 D 表示 超震声波(Deafening

Forge Viewer Extension for Toolbar: How to add a custom combox

╄→гoц情女王★ 提交于 2021-02-11 12:29:34
问题 I am trying to add a custom combobox to the toolbar in the forge viewer. Below is the code for it. I am able to successfully able to add buttons and they are functional. But combobox is not. It adds a combobox but it does show the fly out menu when I click on it. Not sure what I am doing wrong. help! function BuildingToolbarExtension(viewer, options) { Autodesk.Viewing.Extension.call(this, viewer, options); } BuildingToolbarExtension.prototype = Object.create(Autodesk.Viewing.Extension

How to set opacity of each nodes

风格不统一 提交于 2021-02-10 14:21:17
问题 Is there anyway to set opacity of some nodes of the model? For instance, create a override material and use it in renderer for some nodes rather than whole scene. 回答1: When loading a model, the viewer builds its internal spatial indexing structures (BVHs), and one of the factors it takes into account is the transparency of the different fragments. This is in order to ensure that semi-transparent objects are rendered after the opaque ones. However, when changing the material of a fragment on

How to set opacity of each nodes

好久不见. 提交于 2021-02-10 14:21:06
问题 Is there anyway to set opacity of some nodes of the model? For instance, create a override material and use it in renderer for some nodes rather than whole scene. 回答1: When loading a model, the viewer builds its internal spatial indexing structures (BVHs), and one of the factors it takes into account is the transparency of the different fragments. This is in order to ensure that semi-transparent objects are rendered after the opaque ones. However, when changing the material of a fragment on

Forge: Encrypt large file

China☆狼群 提交于 2021-02-07 09:40:31
问题 I use forge framework for some kind of PGP realization. So I need to encrypt very larg file (2gb or more) and keep it encrypted. I want to use as small RAM memory as possible. What is the best way to do it? 回答1: This is a general design issue -- not so much related to forge. Like MDG said, you'll need to use streaming to avoid keeping the whole file and encrypted file in memory. Forge's cipher objects (see: AES) will allow you to consume chunks of data from a stream. You can do cipher.update(

Overlay mesh is transparent for certain material colors in Forge 3D viewer

此生再无相见时 提交于 2021-02-05 08:07:59
问题 I'm trying to add custom geometry to my forge viewer, following this example. It mostly works fine, except when using certain colors. I'm using the following code to add a sphere mesh: const geometry = new THREE.SphereGeometry(0.4, 32, 32) const material = new THREE.MeshBasicMaterial({ color: someColor, transparent: false, }) const sphere = new THREE.Mesh(geometry, material) viewer.overlays.addScene('sphere-mesh-scene') viewer.overlays.addMesh(sphere, 'sphere-mesh-scene') for certain values

Overlay mesh is transparent for certain material colors in Forge 3D viewer

ε祈祈猫儿з 提交于 2021-02-05 08:04:52
问题 I'm trying to add custom geometry to my forge viewer, following this example. It mostly works fine, except when using certain colors. I'm using the following code to add a sphere mesh: const geometry = new THREE.SphereGeometry(0.4, 32, 32) const material = new THREE.MeshBasicMaterial({ color: someColor, transparent: false, }) const sphere = new THREE.Mesh(geometry, material) viewer.overlays.addScene('sphere-mesh-scene') viewer.overlays.addMesh(sphere, 'sphere-mesh-scene') for certain values

Switch AutoDesk Forge Viewer Environment from Local to AutodeskProduction

落花浮王杯 提交于 2021-01-29 14:33:04
问题 We are using autodesk-forge viewer to show 3D Models, We have a requirement as to load the models from the local environment and the auto desk cloud environment Previously we are using only local environment , Viewer initialized with the "env":"Local" let initOptions = { 'env': 'Local' 'language': 'en' } Autodesk.Viewing.Initializer(initOptions) Now we need to switch between the Local Environment and AutodeskProduction , is that Possible? To achieve switching, what cloud i have to do. Have to

Autodesk Forge Viewer getting fragment position

你说的曾经没有我的故事 提交于 2021-01-29 14:08:35
问题 I'm trying to get the position of separate meshes in a model (translated from a revit file). What I'm doing is to get fragmentProxy, then use getOriginalWorldMatrix() to get the THREE.Matrix4(). Then from the Matrix4, call getPosition() to get the THREE.Vector3 world position of the fragment. However, every mesh returns the same position value. Is that because of how the model is built originally? Or I have to get the fragment position using a different method? 回答1: Your process of retrieving

Laravel Forge - multiple sites on the same server

天大地大妈咪最大 提交于 2021-01-27 06:37:47
问题 I have over the past months tried to learn myself about php/laravel. I have made some laravel hobby apps which i was thinking of putting on a server, so i could use them. I am using digitalocean for the server and laravel forge for easy deployment. My problem is that on laravel forge it says that i can add sites, but how do i add more than one site? There is three fields to fill in: Root Domain, Project Type and Web Directory. What do i type in these fields and how do i access the site