You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Viewer}from"../src/viewer/Viewer.js";import{ImagePlane}from"../src/viewer/scene/ImagePlane/ImagePlane.js";import{XKTLoaderPlugin}from"../src/plugins/XKTLoaderPlugin/XKTLoaderPlugin.js";constviewer=newViewer({canvasId: "myCanvas",transparent: true});viewer.camera.eye=[-8.31,42.21,54.30];viewer.camera.look=[-0.86,15.40,14.90];viewer.camera.up=[0.10,0.83,-0.54];constxktLoader=newXKTLoaderPlugin(viewer);xktLoader.load({// Load IFC modelid: "myModel",src: "./models/xkt/schependomlaan/schependomlaan.xkt",metaModelSrc: "./metaModels/schependomlaan/metaModel.json",edges: true,rotation: [0,22,0],// Rotate, position and scale the model to align it correctly with the ImagePlaneposition: [-8,0,15],scale: [1.1,1.1,1.1]});newImagePlane(viewer.scene,{src: "./images/schependomlaanGoogleSatMap.png",// Google satellite imagevisible: true,// Show the ImagePlanegridVisible: true,// Show the grid - grid is only visible when ImagePlane is also visiblesize: 190,// Size of ImagePlane's longest edgeposition: [0,-1,0],// World-space position of ImagePlane's centerrotation: [0,0,0],// Euler angles for X, Y and Zopacity: 1.0,// Fully opaquecollidable: false,// ImagePlane does not contribute to Scene boundaryclippable: true// ImagePlane can be clipped by SectionPlanes});
The text was updated successfully, but these errors were encountered:
Introduce a new
ImagePlane
component, which shows a 3D plane with a bitmap image embedded within it.ImageMap
would be used forDemo 1: Cross Section with Embedded Image
Demo 2: Ground Plane with Embedded Image
The text was updated successfully, but these errors were encountered: