Import 3D Models
Load 3D models into your scene from various file formats
Supported Formats
RFDT supports a wide range of 3D model formats for importing geometry into your scenes.
Currently Supported
- OBJ(.obj) - Wavefront OBJ format
- STL(.stl) - Stereolithography format
Coming Soon
- FBX - Autodesk FBX format
- USDZ - Universal Scene Description
- Mitsuba Scene - Mitsuba renderer scenes
- SMPL - Skinned Multi-Person Linear model
- SDF - Signed Distance Fields
- NeRF - Neural Radiance Fields
- 3DGS - 3D Gaussian Splatting
Advanced Formats
Support for advanced formats like NeRF and 3D Gaussian Splatting will enable importing learned 3D representations directly into your digital twin scenes.
Import Methods
There are two ways to import 3D models into your scene, both supporting bidirectional synchronization:
Method 1: Python Code
Load models programmatically using the Python API
Load OBJ Model
from rfdt import Scene, ObjectFactory
scene = Scene()
# Load OBJ file
building = ObjectFactory.load_obj(
path="models/building.obj",
name="MainBuilding",
position=[0, 0, 0],
scale=[1.0, 1.0, 1.0]
)
scene.add_object(building)
# Access and modify properties
building["Transform"].position = [10, 0, 0]
building["Material"].color = [0.8, 0.8, 0.8, 1.0]Load STL Model
# Load STL file (commonly used for 3D printing models)
antenna = ObjectFactory.load_stl(
path="models/antenna.stl",
name="Antenna",
position=[5, 0, 0]
)
scene.add_object(antenna)
# STL models are automatically converted to mesh objects
print(f"Loaded model with {len(antenna.vertices)} vertices")Bidirectional Sync
Models loaded via Python immediately appear in the RFDT Editor. Any modifications made in the editor are instantly reflected in the Python code.
Method 2: Drag & Drop in Editor
Import models directly in the RFDT Editor interface
How to Import
- 1Open the RFDT Editor (launch from Python or access via web)
- 2Locate your 3D model file (.obj or .stl) in your file system
- 3Drag the file from your file explorer directly into the Viewport panel
- 4The model will be automatically imported and added to the scene
- 5Access the imported object in Python code immediately