Digital Twin IDE
Explorer
Entities
Sensors
Functions
main.js
scene.js
entities.js
sensors.js
Upload 3D Model
Distance Sensors
Ultrasonic
Radar
LiDAR
Proximity
Environmental
Temperature
Humidity
Pressure
Motion Sensors
Accelerometer
Gyroscope
addPoint(lon, lat, height)
Adds a point to the scene at the specified coordinates.
lon:
Longitude in degrees
lat:
Latitude in degrees
height:
Height in meters
addModel(lon, lat, height, modelUrl)
Adds a 3D model to the scene at the specified coordinates.
lon:
Longitude in degrees
lat:
Latitude in degrees
height:
Height in meters
modelUrl:
URL or path to the 3D model file
flyTo(lon, lat, height = 1000)
Animates the camera to fly to the specified location.
lon:
Longitude in degrees
lat:
Latitude in degrees
height:
(Optional) Camera height in meters (default: 1000)
initScene()
Initializes the scene with default settings and sample entities.
createSensorEntity(sensorParam, position)
Creates a sensor entity in the scene.
sensorParam:
Sensor parameters object
position:
Cesium Cartesian3 position
makeEntityDraggable(entity)
Makes an entity draggable on the scene.
entity:
The Cesium entity to make draggable
OPENQQUANTIFY Digital Twin IDE
Run
Stop
AI Assistant
main.js
Save
// Digital Twin Scripting Environment // Access the Cesium viewer with the 'viewer' variable // Example: Add a simple point to the scene function addPoint(lon, lat, height) { return viewer.entities.add({ position: Cesium.Cartesian3.fromDegrees(lon, lat, height), point: { pixelSize: 10, color: Cesium.Color.RED, outlineColor: Cesium.Color.WHITE, outlineWidth: 2 } }); } // Example: Add a 3D model function addModel(lon, lat, height, modelUrl) { return viewer.entities.add({ position: Cesium.Cartesian3.fromDegrees(lon, lat, height), model: { uri: modelUrl, minimumPixelSize: 128, maximumScale: 20000 } }); } // Example: Fly to a location function flyTo(lon, lat, height = 1000) { viewer.camera.flyTo({ destination: Cesium.Cartesian3.fromDegrees(lon, lat, height), orientation: { heading: Cesium.Math.toRadians(0.0), pitch: Cesium.Math.toRadians(-45.0), roll: 0.0 } }); } // Initialize the scene function initScene() { // Set initial camera position flyTo(-74.0060, 40.7128, 5000); // Add a sample point addPoint(-74.0060, 40.7128, 100); console.log("Digital Twin environment initialized"); } // Run the initialization when the script loads initScene();
Console
Clear
Entity Properties
Name
Position (Longitude)
Position (Latitude)
Height (meters)
Update
Delete
AI Assistant
Hello! I'm your Cesium AI assistant. How can I help you with your digital twin today? You can ask me to:
Show specific locations (e.g., "Show me the Eiffel Tower")
Add entities to the scene
Explain Cesium functions
Help with your code
Upload 3D Model
Model Name
Model File (GLTF/GLB)
Select Model File
No file selected
Initial Position (Longitude)
Initial Position (Latitude)
Initial Height (meters)
Cancel
Upload