Skip to content

Serialization duration varies greatly between obj and stl #1407

@ZephyrRaine

Description

@ZephyrRaine

Hello OpenJSCAD team! First of all thank you for your hard work on this library, this is by far the most promising we encountered for boolean operations on the web.

As we tried implementing different file formats to our tool, we noticed the format has a strong impact on processing times.

    const blob = solidsAsBlob([...finalMeshes], {
      format: outputFormat,
    })
    return blob

When outputFormat is stlb it's way faster than obj, but I can't find the reason for this. Passing triangulate: false (as our mesh should already be triangulated) to the options doesn't seem to change anything either.

Do you have any idea on how we can speed up that process, or what area of obj-serializer could need a PR for this?

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions