### Quick Start AR Tutorial Source: https://docs.threedy.io/3.11.6/tutorials/user_tutorials/tools/snapshots A quick start guide for setting up and using Augmented Reality (AR) features within Threedy. This tutorial covers the initial steps for AR integration. ```JavaScript // Placeholder for Quick Start AR initialization code console.log('Starting Quick Start AR tutorial...'); // Example: Initialize AR session // ARSession.start(); ``` -------------------------------- ### Quick Start AR Tutorial Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContextRemovedListenerOptions A quick start guide for setting up and using Augmented Reality (AR) features within Threedy. This tutorial covers the initial steps for AR integration. ```JavaScript // Placeholder for Quick Start AR initialization code console.log('Starting Quick Start AR tutorial...'); // Example: Initialize AR session // ARSession.start(); ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/tutorials/index_dev This section likely covers the initial setup and configuration required to start using the webvis API. It may involve importing necessary modules or calling specific initialization functions. ```javascript import { initializeViewer } from 'webvis'; const viewer = initializeViewer('#viewer-container', { // configuration options }); ``` -------------------------------- ### Install License Server (CentOS Example) Source: https://docs.threedy.io/3.11.6/doc/integration/LICENSE_SERVER Downloads and installs the License Server package for CentOS systems. ```bash instant3Dhub-licenseServer-CentOS-Linux-7-x64*.rpm systemctl start instant3Dhub-licenseServer.service ``` -------------------------------- ### Basic webvis Setup with HTML Source: https://docs.threedy.io/3.11.6/tutorials/dev_tutorials/tutorials/webvis This snippet demonstrates the minimal HTML required to set up a webvis instance. It involves embedding the 'webvis-full' Web Component in the HTML body, which initializes the visualization environment. Basic CSS is also included for styling. ```HTML webvis Example ``` -------------------------------- ### InstanceGraphAPI Quick Start Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/InstanceGraphAPI_highlight=metadata Demonstrates how to get the webvis context, add a new node to the InstanceGraph, register a custom property, and then get and set properties on that node. It shows retrieving both predefined properties like LABEL and custom properties. ```JavaScript const context = webvis.getContext(); const nodeId = context.add({ dataURI:"urn:x-i3d:shape:box", label:"My node", initialProperties: { enabled:true } }); context.registerCustomProperty("myCustomProperty", 0); await context.setProperty(nodeId, "myCustomProperty", 42); const [label, customProp] = await context.getProperties(nodeId, [webvis.Property.LABEL, "myCustomProperty"]); console.log(label, customProp); // My node 42 ``` -------------------------------- ### webvis API Get Context Source: https://docs.threedy.io/3.11.6/tutorials/index_dev Provides an example of how to retrieve a specific context object using its unique identifier. ```javascript const context = getContext('context-abc'); if (context) { console.log('Retrieved context:', context); } ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/tutorials/user_tutorials/basics/shortcuts This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Get Contexts in threedy.io Source: https://docs.threedy.io/3.11.6/doc/webvis-ui/classes Provides an example of retrieving all available contexts. This function is useful for managing multiple contexts within the application. ```JavaScript const allContexts = getContexts(); ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/enums/RenderSetup This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Get Static UI Element in threedy.io Source: https://docs.threedy.io/3.11.6/doc/webvis-ui/classes Provides an example of retrieving a static UI element by its ID. This is useful for interacting with predefined UI components. ```JavaScript const element = getStaticUIElement("mainPanel"); ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis-ui/functions/getSetting This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Get Statistics Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/InstanceGraphAPI_highlight=metadata Traverses a subtree starting from a specified node ID and collects statistics, primarily for AUX nodes. It allows filtering by node type and specifying whether the traversal should be recursive. ```typescript getStatistics(nodeType?: NodeType, nodeID?: number, recursive?: boolean): Promise ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/tutorials/user_tutorials/basics/ui_overview This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Get Statistics Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/InstanceGraphAPI Traverses a subtree starting from a specified node ID and collects statistics, primarily for AUX nodes. It allows filtering by node type and specifying whether the traversal should be recursive. ```typescript getStatistics(nodeType?: NodeType, nodeID?: number, recursive?: boolean): Promise ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/tutorials/user_tutorials/tools/capping This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### React Tab Switching with Webvis Viewer Source: https://docs.threedy.io/3.11.6/tutorials/dev_tutorials/tutorials/initialization This React example demonstrates switching between a 3D view using `` and an information tab. It highlights the default viewer creation and the potential issue of re-rendering when switching back to the 3D view, suggesting the use of named viewers for caching. ```javascript import React from'react'; import{ BrowserRouter as Router, Switch, Route, Link } from'react-router-dom'; function WebvisTab() { // This is not the most performant way for illustration purposes: return ; } function InfoTab() { return

Additional information

; } function App() { return (
); } ``` -------------------------------- ### Get Enabled Auxiliary Nodes Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/InstanceGraphAPI_highlight=metadata Asynchronously retrieves an array of enabled auxiliary node IDs by traversing the subtree starting from a given node ID. This function is deprecated and users should migrate to QueryAPI. ```typescript getEnabledAuxNodes(nodeID: number): Promise ``` -------------------------------- ### Get Enabled Auxiliary Nodes Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/InstanceGraphAPI Asynchronously retrieves an array of enabled auxiliary node IDs by traversing the subtree starting from a given node ID. This function is deprecated and users should migrate to QueryAPI. ```typescript getEnabledAuxNodes(nodeID: number): Promise ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/tutorials/user_tutorials/tools/ar_doc/object_tracking This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/XRPlaybackProperties This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Get XR Playback Properties Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContextAPI Retrieves static information related to an XR playback sequence. This experimental function provides configuration details about the playback, aiding in understanding the setup of recorded or streamed XR content. ```typescript getXRPlaybackProperties(): XRPlaybackProperties ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/XRImageSourceConfigPlayback This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### InstanceGraphAPI Quick Start Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/InstanceGraphAPI Demonstrates how to get the webvis context, add a new node to the InstanceGraph, register a custom property, and get/set properties on a node. It shows the basic usage of InstanceGraphAPI for scene graph manipulation. ```JavaScript constcontext = webvis.getContext(); constnodeId = context.add({ dataURI:"urn:x-i3d:shape:box", label:"My node", initialProperties: { enabled:true } }); context.registerCustomProperty("myCustomProperty", 0); awaitcontext.setProperty(nodeId, "myCustomProperty", 42); const [label, customProp] = awaitcontext.getProperties(nodeId, [webvis.Property.LABEL, "myCustomProperty"]); console.log(label, customProp); // My node 42 ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/SnapshotCreationOptions This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### JavaScript: Add and Configure Heatmap Data Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ViewerHeatmapAPI This example demonstrates how to get instances of ContextAPI and ViewerAPI, add a model, create heatmap data with specified positions, and configure the heatmap's color scheme and maximum value. ```JavaScript constcontext = webvis.getContext(); constviewer = context.getViewer(); // add the model constmodel = context.add({ dataURI:MODEL, initialProperties: { enabled:true } }); // add matching heatmap data constheatmapPositions = [ 0, 1, 0, // first point 0, 1, 1, // second point 0, 0, 2, // third point ]; constheatmapDataId = viewer.createHeatmap({ position:heatmapPositions }); // configure the heatmap viewer.configureHeatmap({ // set a color scheme colorScheme:"Blackbody", // calculated density is normalized, upper end of color scheme is mapped to maxValue maxValue:100, } ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/integration/LICENSE_SERVER_USAGE This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### webvis Initialization Source: https://docs.threedy.io/3.11.6/tutorials/user_tutorials/tools/snapshots This section details how to initialize the webvis component, a core part of the Threedy platform for 3D visualization. It covers the necessary steps and configurations for setting up webvis within your application. ```JavaScript /** * Initializes the webvis component. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.initialView] - Optional initial camera and scene settings. */ function initializeWebvis(options) { // Implementation details for initializing webvis... console.log('Initializing webvis with options:', options); } ``` -------------------------------- ### ViewerMagnifierAPI - Enable and Configure Magnifier Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ViewerMagnifierAPI This example demonstrates how to get an instance of the ContextAPI, retrieve the default viewer, and then enable and configure the magnifier. It shows how to set properties like roundness, position, size, and zoom level, either individually or all at once. ```JavaScript const myContext = webvis.getContext( "example" ); const viewer = myContext.getViewer(); // Enable magnifier viewer.changeMagnifier({enabled:true}); // Change magnifier properties viewer.changeMagnifier({roundness:50, position: [1000,720], size: [500,300], zoomLevel:2}); // Alternatively, enable and set all properties in one call viewer.changeMagnifier({roundness:50, enabled:true, position: [1000,720], size: [500,300], zoomLevel:2}); ``` -------------------------------- ### instant3Dhub Configuration Example Source: https://docs.threedy.io/3.11.6/doc/integration/INSTALL_PROXY_GUIDE This snippet shows a minimal configuration for instant3Dhub deployments, focusing on the 'entrypoints' variable. This variable must be set to the external address under which the installation will run, ensuring internal components correctly generate URLs for the web frontend. ```Configuration entrypoints: https://example-proxy-server/extra/path/ ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/XRPlaybackState This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Load 3D Content via URL Parameters Source: https://docs.threedy.io/3.11.6/tutorials/dev_tutorials/tutorials/webvis Configure webvis by providing URL query parameters. Use the 'initData' parameter to specify a 3D resource for loading at startup, and include 'autoplay' to enable it. ```URL http://somehost/some-page.html?initData=urn:x-i3d:shape:key&autoplay ``` -------------------------------- ### Get Statistics Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContextAPI Traverses a subtree starting from a given node ID and collects statistics, primarily for AUX nodes. It accepts optional parameters for node type, node ID, and recursion. Returns a Promise resolving to an object of type/count pairs. ```TypeScript getStatistics( nodeType?: NodeType, nodeID?: number, recursive?: boolean, ): Promise ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/classes/BackgroundClickedEvent This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Get Enabled Auxiliary Nodes Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContextAPI Traverses a subtree starting from a given node ID to collect all enabled auxiliary nodes. This function is deprecated and users are advised to use the QueryAPI instead. It returns a Promise that resolves to an array of node IDs. ```javascript getEnabledAuxNodes(nodeID: number): Promise ``` -------------------------------- ### Request Supported Render Setups Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContextAPI Retrieves all supported render setups, if any are available. Each setup is returned as a name-value pair, where the value can be used with ViewerSettingStrings.RENDER_SETUP. Inherited from HubAPI. ```typescript requestSupportedRenderSetups(): Promise<{ name: string; value: string }[]> ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis-ui/functions/exportUserSettings This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Install Ansible on CentOS 7 Source: https://docs.threedy.io/3.11.6/doc/integration/TOOLS_ANSIBLE This snippet shows the command to update the package cache on CentOS 7, a prerequisite for installing Ansible. It also includes a command to check the installed Ansible version. ```bash sudo yum update -y ``` ```bash ansible --version ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis-ui/enums/UISetting This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Request Supported Render Setups Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/HubAPI Requests all available render setups from the backend. Each setup is a key-value pair used for viewer settings. The function returns a Promise resolving to an array of objects with 'name' and 'value' properties. ```typescript requestSupportedRenderSetups(): Promise<{ name: string; value: string }[]> ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/integration/SYSTEM_OVERVIEW This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Example: ContentType ID Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContentType Provides an example of a content type identifier, such as 'x3d-xml'. ```JavaScript const contentTypeId = "x3d-xml"; ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/integration/TROUBLESHOOTER_ADMIN_UI This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/integration/AUTHENTICATION This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Set Render Setup Source: https://docs.threedy.io/3.11.6/doc/webvis/enums/ViewerSettingStrings Specifies the render setup configuration for the viewer. The default is RenderSetup.LOCAL. ```javascript RenderSetup.LOCAL ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContextCreatedListenerOptions This section details the initialization process for the webvis API, a core component for interacting with 3D data within the Threedy platform. It covers the necessary steps and configurations to get the webvis environment up and running. ```JavaScript /** * Initializes the webvis API. * @param {object} options - Configuration options for initialization. * @param {string} options.containerId - The ID of the HTML element to render the webvis instance. * @param {object} options.viewerConfig - Configuration for the 3D viewer. * @returns {Promise} A promise that resolves with the webvis API instance. */ async function initializeWebvis(options) { // Placeholder for actual webvis initialization logic console.log('Initializing webvis with options:', options); // Simulate API call or setup return new Promise((resolve) => { setTimeout(() => { const webvisApi = { // Mock webvis API methods loadModel: (modelUrl) => console.log(`Loading model: ${modelUrl}`), setCamera: (cameraConfig) => console.log('Setting camera:', cameraConfig), // ... other webvis API methods }; resolve(webvisApi); }, 1000); }); } ``` -------------------------------- ### Example: ContentType Specification Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContentType Provides an example of the specification for a content type, such as 'ISO/IEC IS 19775-1:2013'. ```JavaScript const contentTypeSpec = "ISO/IEC IS 19775-1:2013"; ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/concepts/formats/catiav5 This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Animation Started Event - threedy.io Source: https://docs.threedy.io/3.11.6/doc/webvis/enums/EventType Represents the event type when an animation has started. This is associated with the AnimationAPI. ```javascript ANIMATION_STARTED: 69 ``` -------------------------------- ### API Reference: ContextAPI Source: https://docs.threedy.io/3.11.6/doc/webvis/enums/RenderSetup Documentation for the ContextAPI, which manages the context of the webvis application, including scene management, user interactions, and application state. ```typescript interface ContextAPI { getContextState(): any; setContextState(state: any): void; registerListener(options: ContextCreatedListenerOptions | ContextRemovedListenerOptions): void; } ``` -------------------------------- ### Example: ContentType Homepage Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContentType Provides an example of a homepage URL for a content type, like 'http://www.web3d.org'. ```JavaScript const contentTypeHomepage = "http://www.web3d.org"; ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/classes/TopologyPointerOutEvent This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Example: ContentType Suffixes Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContentType Lists example supported suffixes for a content type, such as 'x3d', 'x3dz', and 'x3z'. ```JavaScript const contentTypeSuffixes = ["x3d", "x3dz", "x3z"]; ``` -------------------------------- ### Initialize webvis with GamepadAPI Blocked Source: https://docs.threedy.io/3.11.6/releases/instant3Dhub_changelog Ensures that webvis initializes correctly even when the GamepadAPI is blocked by the Permissions-Policy header. This improves compatibility in environments with strict security policies. ```N/A webvis now initializes correctly when the GamepadAPI is blocked by the Permissions-Policy header ``` -------------------------------- ### Example: ContentType Label Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContentType Provides an example of the full name for a content type, like 'X3D, XML Encoding'. ```JavaScript const contentTypeLabel = "X3D, XML Encoding"; ``` -------------------------------- ### Example Label Position Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/AnnotationData Shows an example of how to define the label's position for an annotation using a three-element array. ```JavaScript [0, 2, 0] ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/concepts/formats/catiaV4 This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/concepts/formats/NX This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Example Anchor Position Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/AnnotationData Provides an example of how to set the anchor position for an annotation using a three-element array of numbers. ```JavaScript [0, 1, 0] ``` -------------------------------- ### XR Spectate Start Event: XR_SPECTATE_STARTED Source: https://docs.threedy.io/3.11.6/doc/webvis/enums/EventType Indicates that an XR spectate session has started. This event is managed by the RealityAPI. ```JavaScript XR_SPECTATE_STARTED: 118 ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/TopologyShapeDescriptor This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/classes/ServiceConnectionLostEvent This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Example: ContentType MIME Types Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContentType Shows an example of supported MIME types for a content type, including 'model/x3d+xml' and 'model/x3d'. ```JavaScript const contentTypeMimeTypes = ["model/x3d+xml", "model/x3d"]; ``` -------------------------------- ### Get Contexts Source: https://docs.threedy.io/3.11.6/doc/webvis/webvis_api Retrieves all available contexts. This can be used to manage multiple contexts or to get an overview of the current application state. ```typescript getContexts(): Context[]; ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/XRState This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/classes/NodePropertiesResetEvent This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Convert RPM to DEB and Install (Ubuntu) Source: https://docs.threedy.io/3.11.6/doc/integration/LICENSE_SERVER Converts an RPM package to DEB format and installs it on Debian-based systems like Ubuntu. ```bash instant3Dhub-licenseServer-CentOS-Linux-7-x64*.rpm debian/bin/rpm2deb instant3Dhub-licenseServer-CentOS-Linux-7-x64*.rpm sudo dpkg -i instant3dhub-licenseserver_*.deb ``` -------------------------------- ### Request XR Auto Detect Scores Example Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ViewerXREdgeCompareAPI This example demonstrates how to request XR auto detect scores for a given node ID. It includes setting the node to XR Edge Compare mode, requesting the scores, and logging the result. The example also shows how to re-request scores periodically if the node remains in XR Edge Compare mode. ```JavaScript const myContext = webvis.getContext( "example" ) const nodeID = 1; myContext.setProperty(nodeID, webvis.Property.COMPARISON_GROUP, webvis.ComparisonGroup.XR_EDGE); async function update() { const result = await myContext.getViewer().requestXRAutoDetectScores([nodeID]); console.log(result[0].score > 0.5 ? "Positive" : "Negative"); if (result[0].details.edgeCompareEnabled) { setTimeout(update, 500); } } update(); ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/enums/SettingStrings This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/MaterialProperties This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Install Grafana via Helm Source: https://docs.threedy.io/3.11.6/doc/integration/INSTALL_GRAFANA This snippet demonstrates how to install Grafana using a Helm chart. It highlights the 'helm=true' parameter, indicating the use of Helm for deployment and configuration. ```Shell helm=true=true ``` -------------------------------- ### Install Helm Source: https://docs.threedy.io/3.11.6/doc/integration/INSTALL_K8S This section describes the initial step of installing Helm, a prerequisite for deploying instant3Dhub using Helm charts. It mentions the availability of Helm chart repositories for instant3Dhub. ```bash &&700&& ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/TopologyPlanarFaceDescriptor This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/SettingsAPI This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Start License Server Service Source: https://docs.threedy.io/3.11.6/doc/integration/LICENSE_SERVER This snippet shows how to start the License Server service using systemctl. It assumes the service is named '{RemoteDB}.service'. The server typically exposes port 8200. ```Shell systemctl start {RemoteDB}.service ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/concepts/formats/IFC This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### URN Mapper Configuration Example (YAML) Source: https://docs.threedy.io/3.11.6/doc/integration/URN_MAPPER Example configuration for setting data pools for external data sources. This section defines how data is accessed or how inputs are rewritten, supporting both URN and regex templates for matching. ```yaml # Set data pools for external data sources. These define how data is accessed or # how inputs should be rewritten. The system will attempt to download data from # the given URLTemplate and use the data as input for transcoding. # # Either URN or regex must be set. URN provides a more simplified way to define # abstract identifiers for data sources. Regex allows for more complex matching # of URLs. # # For URN templates, ${n} is the n-th value in the URN separated after # urn:namespace:specifier:xxx # e.g.: urn:x-i3d:shape:sphere (${1} == sphere) # # For regex templates, ${n} is the n-th capture group value in the regex. ``` -------------------------------- ### Get Collection Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContextAPI Retrieves a collection by its ID. ```TypeScript getCollection(collectionID: number): ICollection; ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/TopologyHandle This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/XRScanshot This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Get Measurements Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContextAPI Retrieves a list of all measurement IDs. ```TypeScript getMeasurements(): number[]; ``` -------------------------------- ### Get Materials Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContextAPI Retrieves a list of all material IDs. ```TypeScript getMaterials(): number[]; ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/classes/XRMemberAddedEvent This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### webvis API Initialization Source: https://docs.threedy.io/3.11.6/doc/webvis/classes/SnapshotChangedEvent This section details the initialization process for the webvis API, a core component for visualizing 3D data within Threedy. It covers the necessary steps and configurations to get the webvis environment up and running. ```javascript /** * Initializes the webvis API. * @param {object} options - Configuration options for webvis. * @param {string} options.containerId - The ID of the HTML element to render webvis in. * @param {object} [options.theme] - Optional theme settings. */ function initializeWebvis(options) { // ... initialization logic ... console.log('webvis initialized with options:', options); } ``` -------------------------------- ### Get Drawings Source: https://docs.threedy.io/3.11.6/doc/webvis/interfaces/ContextAPI Retrieves a list of all drawing IDs. ```TypeScript getDrawings(): number[]; ```