RayCreate is a tool for generating synthetic example ray clouds for testing, demonstration, and algorithm development. It can create various types of 3D structures including rooms, buildings, trees, forests, and terrain.
raycreate <object_type> <seed>
<object_type>: The type of object to create (room, building, tree, forest, terrain).<seed>: Random seed number (1-1000000) for reproducible generation.
raycreate <object_type> <input_file>
<input_file>: Input file for generating specific structures.
Generates a simple room structure with walls, ceiling, and floor.
raycreate room 3
Creates a more complex building structure with multiple rooms and features.
raycreate building 42
Generates a single tree with branches and foliage structure.
raycreate tree 15
Creates a forest scene with multiple trees and ground structure.
raycreate forest 100
Generates terrain with elevation variations and surface features.
raycreate terrain 7
raycreate forest trees.txt
Where trees.txt contains comma-separated values: x,y,z,radius for each tree location.
raycreate terrain mesh.ply
Generates terrain ray cloud from an input ground mesh file.
The tool generates a ray cloud file with the appropriate name:
room_<seed>.plybuilding_<seed>.plytree_<seed>.plyforest_<seed>.plyterrain_<seed>.ply
Generated clouds include:
- Ray start and end points
- Timing information
- Color coding based on time
- Alpha channel indicating bounded/unbounded rays
Create a room for testing:
raycreate room 42
Generate a forest from a specific seed:
raycreate forest 123
Create terrain from existing mesh:
raycreate terrain ground_model.ply
Build forest from tree location file:
raycreate forest tree_positions.txt
Generate a building for algorithm testing:
raycreate building 999
- All generated ray clouds include realistic ray timing and coloring
- Objects are generated with appropriate density and geometric properties
- Seed values allow reproducible generation for consistent testing
- For more detailed information on generation algorithms and parameters, refer to the
RayCreatesource code atraycloudtools/raycreate/raycreate.cpp.