Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE REQUEST: import geometry file form CAD #58

Open
iiiian opened this issue Oct 29, 2020 · 1 comment
Open

FEATURE REQUEST: import geometry file form CAD #58

iiiian opened this issue Oct 29, 2020 · 1 comment

Comments

@iiiian
Copy link

iiiian commented Oct 29, 2020

It will be super nice if we can import some format of CAD file into megalib geometry file. For some mechanically structure, it's kind of complex. Is this feature possible?

@iiiian iiiian changed the title import geometry file form CAD FEATURE REQUEST: import geometry file form CAD Oct 29, 2020
@jpbreuer
Copy link

jpbreuer commented Aug 7, 2024

Hello! I have been looking at trying to do this recently using the cadmesh library since it should be something like including an additional header file to a project.

I have gone through the megalib documentation, but I could not find what I think I need. Is there some 'lower-level' type documentation of how exactly megalib is translating the geometry files into the geant4-compatible syntax? I figured that one way to add CAD to the geometry file would be to have some kind of in between scripting hack that adds some lines into the final geometry file, but I am not sure how megalib is handling this and all of the different headers right now.

If you could please provide some details I will try to take a look at it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants