Project
Loading...
Searching...
No Matches
O2SurfaceSolidIO.h
Go to the documentation of this file.
1// Copyright 2019-2026 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
13
14#ifndef ALICEO2_CADSUPPORT_O2SURFACESOLIDIO_
15#define ALICEO2_CADSUPPORT_O2SURFACESOLIDIO_
16
17#include <string>
18
19namespace o2
20{
21namespace base
22{
23class O2Tessellated;
24}
25namespace cad
26{
27
28class O2BVHSurfaceSolid;
29class O2FlatCSG;
30
33bool LoadSurfaceSolid(const std::string& file, O2BVHSurfaceSolid& solid);
34
37bool LoadFacetSolid(const std::string& file, o2::base::O2Tessellated& solid);
38
40bool LoadFlatCSG(const std::string& file, O2FlatCSG& solid);
41
44bool WriteFlatCSG(const std::string& file, const O2FlatCSG& solid);
45
46} // namespace cad
47} // namespace o2
48
49#endif
bool LoadFlatCSG(const std::string &file, O2FlatCSG &solid)
Load a flat-CSG sidecar (flatcsg_*.bin, version 1) into solid; call CloseShape() after....
bool LoadFacetSolid(const std::string &file, o2::base::O2Tessellated &solid)
bool WriteFlatCSG(const std::string &file, const O2FlatCSG &solid)
bool LoadSurfaceSolid(const std::string &file, O2BVHSurfaceSolid &solid)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...