Skip to content

IFCLoader parse should return Mesh #93

@xawill

Description

@xawill
  • three version: 0.129
  • node version: 12.16.0
  • npm version: 6.13.4

Problem description:

I think the parse method of the IFCLoader should return something and not void, isn't it @agviegas? For instance with the ColladaLoader, the user can directly use the parse method with the content of the Collada file as a string or a Buffer.

I saw you recently updated the typings for your library, but this remained untouched.

From what I read in the code, I think it outputs a Mesh (i.e. the output of the function generateAllGeometriesByMaterial).

Relevant code:

parse(data: ArrayBuffer | string): void;

Suggested solution:

parse(data: ArrayBuffer | string): Mesh;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions