g4system
Loading...
Searching...
No Matches
cadSystemFactory.h File Reference

Factory that converts CAD files (PLY / STL) into Geant4 tessellated solids via CADMesh. More...

#include <unordered_map>
#include <string>
#include "g4objectsFactory.h"
Include dependency graph for cadSystemFactory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  G4CadSystemFactory
 Builds a tessellated solid from CAD files using CADMesh. More...
 

Detailed Description

This factory expects that the input volume description provides a CAD file path (typically via the GVolume "description" field). Supported formats are:

  • .ply
  • .stl

The implementation uses CADMesh (single-header library) and enables an Assimp reader backend in the implementation translation unit.

Requirements:

  • CADMesh.hh must be available on the include path
  • Assimp must be available if the Assimp reader backend is enabled

Definition in file cadSystemFactory.h.