Geometry Editor API¶
Main editor panel for creating, selecting, and editing geometry objects.
RefactoredGeometryEditor(props)¶
Main GeometryEditor component - Refactored Version
This component provides a comprehensive interface for creating, editing, and managing geometries for Geant4 simulations.
Kind: global function
Params
- props
Object- Component props- .geometries
Object- The geometry objects (world and volumes) - .materials
Array- List of available materials - .selectedGeometry
string- ID of the currently selected geometry - .hitCollections
Array- List of hit collections for the detector - .onUpdateHitCollections
function- Callback to update hit collections - .onUpdateGeometry
function- Callback to update a geometry object - .onAddGeometry
function- Callback to add a new geometry object - .onRemoveGeometry
function- Callback to remove a geometry object - .updateDialogData
Object- Data for the update dialog - .updateDialogOpen
boolean- State of the update dialog - .setUpdateDialogOpen
function- Callback to set the update dialog state
- .geometries