Skip to content

TGeoPainter build method doesn't fill name and other Object3d fields #303

Closed
@DraTeots

Description

@DraTeots

When using build() function to convert root geometry to Object3d, I noticed that nodes name fields are empty (see the screen below - red) and some other fields are not set properly (green).

image

I believe this is the reason, that if converters ( such as root2cad or root to GLTF ) produce geometry that is hard to navigate in consequent CAD or 3D software (see the screen, Blender is an example, others show the same):

image

Here is the reference geometry:

epic_dirc_only.root.zip

The code is straight forward:

const file = await openFile(url);
const geoManager = file.readObject('default');
console.time('Build geometry');
let obj3d = build(geoManager, { numfaces: 500000000, numnodes: 5000000, dflt_colors: true, vislevel: 10});
console.timeEnd('Build geometry');
console.log(obj3d);

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions