
You can use this function to learn, which fastener goes to which hole. Using the slider define, the distance between exploded elements.Select the entire printer or section and click on the Explode button (see the bottom panel).You can 'explode' the entire printer or specific section into the basic parts. You can turn them back ON by clicking on them again. the Extruder), click on the "eye" icon next to the section to make it invisible (grey). In case you want to isolate a specific section (e.g.First, click on the Model browser to open a list of the printer's sections, those are listed according to the assembly manual.See the Pen Forge Viewer v7: SceneBuilder by Petr Broz ( on CodePen.The entire model is designed according to the assembly manual, therefore, you can easily access a specific part of the printer or learn which fasteners are used. If you're interested in experimenting with the extension yourself, here's a little interactive preview for you: Because of that, you will also want to use the "aggregate" variants when handling events, for example, using the _SELECTION_CHANGED_EVENT instead of _CHANGED_EVENT. Keep in mind that the custom geometry created with ModelBuilder will really act as another model. The ModelBuilder class exposes additional methods you can use to manipulate your custom model, for example:įor a detailed overview of all the methods and their arguments, see.

ModelBuilder.addFragment(myGeometry, 'M圜ustomMaterial', myTransform) ModelBuilder.addMaterial('M圜ustomMaterial', myMaterial) While overlays may be a better fit for certain scenarios, the content inserted with behaves just like the standard Forge models - you can interact with it both programatically and through user input.Īfter loading the extension the usual way, call its (async) method addNewModel to create a new Model and instantiate a ModelBuilder for it: async function addModel(viewer) ) The extension is not meant to replace the scene overlays mentioned above. The extension allows you to create Models similar to those you load from the Model Derivative service, and populate them on-the-fly.

Let's take a look at it! What it can and can't do Well, if this is something you've been waiting for, worry no more! The Forge Viewer team has put together a new extension that turns your custom three.js content into "proper" viewer models:. You cannot hover or select the objects, move camera to them using the Viewer APIs, and so on. While these techniques work - meaning that you can see your custom objects rendered with your custom materials - they don't really play well with the rest of the viewer. We usually recommend using scene overlays, and those feeling more adventurous go directly to the uncharted territories of or. Embedding custom three.js geometry into Forge Viewer is a very common request.
