Skip to content

Retrieve 3DMLoader conversion warnings #21638

@karimi

Description

@karimi

Is your feature request related to a problem? Please describe.

3DMLoader can occasionally fail to return geometry if render meshes are missing. Right now such warnings are only posted to console. It'll be helpful if these are returned when calling .load() or .parse()

Describe the solution you'd like

A solution may be that the returned object has an array of warnings. Another solution may be that parse and load methods accept an optional onWarning callback.

Describe alternatives you've considered

The current 3DMLoader outputs such messages to console using console.warn() . I've tried a workaround to capture all console.warn messages this way but it's pretty hacky.

Additional context
Below is a screenshot of an example model that was missing render meshes. (not the default Rhino Logo model)
Screen Shot 2021-04-12 at 5 41 42 PM

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions