82 auto geo_cshape =
dynamic_cast<TGeoCompositeShape*
>(node->GetDaughter(0)->GetVolume()->GetShape());
84 if (!geo_cshape)
throw std::runtime_error(
"The first vshape is not a CSG shape.");
86 bool poly_first =
false;
108 eve_pshape->
Draw(
"ogl");
R__EXTERN TGeoManager * gGeoManager
static void SetAutoEnforceTriangles(Bool_t f)
void BuildFromComposite(TGeoCompositeShape *cshp, Int_t n_seg=60)
Produce all polygons from composite shape.
void SetNSegments(Int_t s)
Set number of segments.
void SaveExtract(const char *file, const char *name)
Save the shape tree as REveGeoShapeExtract.
TGeoShape * GetShape() const
void SetShape(TGeoShape *s)
Set TGeoShape shown by this object.
static REveManager * Create()
If global REveManager* REX::gEve is not set initialize it.
void SetMainColor(Color_t color) override
Set main color.
Class handling Boolean composition of shapes.
The manager class for any TGeo geometry.
void CloseGeometry(Option_t *option="d")
Closing geometry implies checking the geometry validity, fixing shapes with negative parameters (run-...
TGeoVolume * MakeBox(const char *name, TGeoMedium *medium, Double_t dx, Double_t dy, Double_t dz)
Make in one step a volume pointing to a box shape with given medium.
void SetTopVolume(TGeoVolume *vol)
Set the top volume and corresponding node as starting point of the geometry.
TGeoNode * GetTopNode() const
Base class describing materials.
virtual void RegisterYourself()
Register the matrix in the current manager, which will become the owner.
Media are used to store properties related to tracking and which are useful only when using geometry ...
virtual void Draw(Option_t *option="")
Draw this shape.
Class describing translations.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
Add a TGeoNode to the list of nodes.
virtual void SetName(const char *name)
Set the name of the TNamed.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)