3
$\begingroup$

I have a radiation analysis program (NOVICE by EMPC) that only accepts 3D models made up solely of solid primitives, such as cubes or "boxes".

My strategy is to "voxelize" complex models using blender's particle system, such that I can export the model as an .obj file made up of nothing but cubes. see my previous stack exchange question for context here

However, the cubes produced by blender's particle system do not appear as solid primitives in Fastrad, (another analysis program we use to check for compatibility) but are instead made of polygons. It seems that I am getting a polygonal mesh instead of a solid. see comparison here

Furthermore, when I try testing just a single blender cube in fastrad, instead of the ones produced by the particle system, I get invalid shape errors. See first and second images from this album Although the box looks solid in this case, it seems to be made of "tesselated shapes" so it is actually probably supposed to look like the cube split into triangles from earlier.

The end goal is for my cubes to appear as a box element (see fifth image in above album) rather than a "shape".

I think a large part (if not all) of the issue is that Fastrad appears to polgonize any .step/.stp file it imports (see below). However, the only other file formats Fastrad can import are iges, gdml and sysbas. Only gdml and sysbas do not have discretization as part of the import procedure.

fastrad .step import

Below are some test files that may shed some light on the problem.

Is there a way I can convert my voxelated models such that the cubes are actually solid primitives? The .stp for a solid primitive box made in Fastrad is a lot larger (two or three times the number of lines) than a blender cube, so I would like to avoid writing a translator from scratch if possible.

$\endgroup$
3
  • $\begingroup$ After further testing it seems that Fastrad's import gdml functions are broken. $\endgroup$
    – alex.l
    Commented Sep 27, 2018 at 8:16
  • $\begingroup$ Actually I think it only accepts .gdml files that are specifically for Geant4. Unfortunately the FreeCAD module that supports gdml does not export this type of gdml. $\endgroup$
    – alex.l
    Commented Sep 27, 2018 at 8:52
  • $\begingroup$ Actually it does seem like Fastrad's gdml translation is broken, since it cannot import the gdml that it creates itself... $\endgroup$
    – alex.l
    Commented Sep 27, 2018 at 9:34

0

You must log in to answer this question.

Browse other questions tagged .