77 REX::REveManager::Create();
79 REX::REveGeoPolyShape::SetAutoEnforceTriangles(
true);
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
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.
void SetMainColor(Color_t color) override
Set main color.
Composite shapes are Boolean combinations of two or more shape components.
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.
TGeoSphere are not just balls having internal and external radii, but sectors of a sphere having defi...
Class describing translations.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
virtual TGeoNode * AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
Add a TGeoNode to the list of nodes.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
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)