TGeoCompositeShape sustraction [message #5085] |
Wed, 26 September 2007 16:49 |
asanchez
Messages: 350 Registered: March 2006
|
first-grade participant |
From: *gsi.de
|
|
dear all,
i have tried to build a TGeoComposite Shape which is the substraction of other two volumes, and when i try to visualize them i get this error message.
Root >
*** Break *** segmentation violation
Generating stack trace...
0xffffe420 in <unknown function>
0x423a9410 in TGeoBoolNode::Paint(char const*) + 0x92 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGeom.so
0x423aaddb in TGeoSubtraction::Paint(char const*) + 0x7f from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGeom.so
0x423b8d6e in TGeoCompositeShape::PaintComposite(char const*) const + 0x286 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGeom.so
0x42687481 in TGeoPainter::PaintShape(TGeoShape const&, char const*) const + 0x10d from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGeomPainter.so
0x4268729a in TGeoPainter::PaintVolume(TGeoVolume*, char const*, TGeoMatrix*) + 0x7f8 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGeomPainter.so
0x42686709 in TGeoPainter::Paint(char const*) + 0x1d1 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGeomPainter.so
0x42428d63 in TGeoVolume::Paint(char const*) + 0x93 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGeom.so
0x412791ae in TPad::PaintModified() + 0x2b2 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGpad.so.5.12
0x4125bfe0 in TCanvas::Update() + 0xee from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGpad.so.5.12
0x41d625d7 in TRootCanvas::HandleContainerConfigure(Event_t*) + 0x55 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGui.so
0x41d6300f in TRootContainer::HandleConfigureNotify(Event_t*) + 0x3b from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGui.so
0x41caf86f in TGFrame::HandleEvent(Event_t*) + 0xc7 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGui.so
0x41c85844 in TGClient::HandleMaskEvent(Event_t*, unsigned long) + 0x80 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGui.so
0x41c8542a in TGClient::ProcessOneEvent() + 0x86 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGui.so
0x41c85516 in TGClient::HandleInput() + 0x28 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGui.so
0x41c837fa in TGInputHandler::Notify() + 0x22 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGui.so
0x402ca3eb in TUnixSystem::DispatchOneEvent(bool) + 0x57 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libCore.so.5.12
0x401d5b22 in TSystem::InnerLoop() + 0x22 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libCore.so.5.12
0x401d5ab8 in TSystem::Run() + 0x80 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libCore.so.5.12
0x4014d72f in TApplication::Run(bool) + 0x37 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libCore.so.5.12
0x4172b563 in TRint::Run(bool) + 0x449 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libRint.so.5.12
0x08048e64 in main + 0x90 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/bin/root.exe
0x418b5e36 in __libc_start_main + 0xc6 from /lib/libc.so.6
0x08048d31 in TApplicationImp::ShowMembers(TMemberInspector&, char*) + 0x3d from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/bin/root.exe
Root >
Has any of you any idea?
best regards
alicia.
|
|
|
|
Re: TGeoCompositeShape sustraction [message #5087 is a reply to message #5086] |
Wed, 26 September 2007 17:13 |
asanchez
Messages: 350 Registered: March 2006
|
first-grade participant |
From: *gsi.de
|
|
Hi that is still the old release.
I have checked again, it works.
the problem was related with a bad copy numbering.
anyway if somebody tries to substrate two volumes by using
TGeoCompositeShape, pay attention because there is a bug in the root class documentation.
TGeoCompositeShape *cv = new TGeoCompositeShape("cv"," first\ second")
Don't use (\) for susbatration, it doesn't work.
The proper expression is (-)
TGeoCompositeShape *cv = new TGeoCompositeShape("cv"," first- second")
best regards
alicia
|
|
|