Replacing part of geometry in three.js - three.js

Hello I have a OBJ file exported from 3d max. In the file I assigned parts of the model to groups. I can open my file in text editor I can see vertices and faces assigned to 20 groups.
However when I export to js (to rendered on a webpage using 3js) and look at my file I don't see my groups. Can I retain groups when I convert the file to js or does the json format doesn't support groups?
The overall aim is to be be able to replace parts of the geometry with a click or button. My plan was to write a script to replace groups on runtime but since I am not able to retain group names when exported to .js I am wondering if it's possible to do with 3js?

Related

Import drive label value inside a file to be visible when downloaded or printed

In our company we want to enforce our classification scheme and insert classification labels to our files in Google Drive. A badged label called Classification Level has been created, and three (3) options have been defined. A user can manually assign the label and choose the appropriate value manually, and we have also created some DLP rules for automatic classification based on conditions.
However, the classification label when the file is printed or downloaded is not visible anywhere inside the file, thus our handling guidelines cannot be followed since the custodian of the file is not aware of the classification label (criticality) of the file.
Is it possible to bring the most updated value of the drive label inside the document (i.e. header, footer, cover page) and this value to be visible when the file is downloaded or printed?
Thank you in advance!
Created drive label but could not import it in the file.

Creating Shape with Google Apps Script in Google Sheets

I have a Google apps script that creates a new tab, which is executed through a shape that I added; more specifically a bevel. Now I would like for that same macro to create a new bevel shape on that new tab and assign it a new script.
How do I create a shape via GAS, and then assign a new script to it?
https://developers.google.com/apps-script/reference/spreadsheet/sheet
There are functions for inserting images. However there is no way to attach a script to them except for manually.
There are also no functions for getting, deleting, or otherwise manipulating an image once it is [art of the sheet. This prevents copying the an existing image. You would need to source your image from a URL or by providing a blob (sort of like file contents) probably pulled from a file in drive.
You may want to consider using a custom menu:
https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet-app#getUi()

VTK display multiple images

Does someone knows how to display multiple images using ActiViz or VTK?
I have a RenderWindowControl, I would like to either display all the images like in a list in there or add multiple RenderWindowControls to display the multiple images..
Thanks!
You have some choices, for the task of visualize multiple images. I hope that at least one of them represents what you want to achieve:
1- Using multiple render windows. Basically, the example provided in the link creates an array of vtkRenderWindowInteractor objects, so that you can visualize multiple images.
2 - Using a single render window with viewports. The render window is splitted into viewports (renderer->SetViewport is the key, here), so that you can visualize n images at a time, where n is the number of viewports.
3 - Using the "slices" approach (the example works on DICOM files). This implements the "list" behaviour, as you said in your question. Basically, you visualize an image at a time, but you can navigate through them simply by pressing the arrow keys. The example derives the vtkInteractorStyleImage class to catch the events regarding key pressures.

Change icon of markercluster depending on marker type inside the cluster

I have a map with markers of at this time two different types: photos and blog posts. I would like to use a clustering system, preferably MarkerClusterer.
Is there a way to change the marker icon dynamically, or in other words, depending on what kinds of marker (photos or posts) are inside the cluster? For example, if the cluster only consists of photos, I would like to display some sort of camera icon, if there are only posts inside the cluster, I might want to display a letter. And if all types of markers are inside the cluster, I would like to use some sort of combined icon.
Can I somehow insert this check where I assign the URL of the icon in MarkerStyleOptions?
A bonus would be to also display the amount of markers of each type in the icon, i.e. two numbers.
Does anyone see a way to do this without having to change the source code?
I guess the simplest option is to keep each marker type in a seperate clusters ...
You must create a different array of marker for each group that you created. And try to create a MarkerCluster for each one.

Word VBA checkboxes with link to image that needs to be built up

I am having problems with a table containing checkboxes in Word.
I am working with a table containing 10 checkboxes. Next to this table, there is an image.
When the user checks one of the checkboxes, something has to be added to the image, i.e. the image is further completed.
However, the order of checking the checkboxes is not fixed or defined, so there are lots of different combinations.
Is there a way to add the additional parts to the original image, linked to the checkboxes? Or is this way too advanced for Word?
Word doesn't have this type of built-in functionality with images. There are too many state combinations for the checkboxes to make an image for each state in advance. One possibility could be to find a dll or ocx and draw the image programatically (advanced). Another would be to edit your image in photoshop and cut it up into 10 separate files using a transparent background. You could then add and remove layers to wherever you are displaying your image and control the z-ordering with vb.

Resources