Skip to content

How to specify parameters in apply_filter #442

@jmrfox

Description

@jmrfox

I can create a MeshSet and apply a generate_alpha_wrap filter as follows:

ms = pymeshlab.MeshSet()
ms.load_new_mesh(str(filepath_raw))
ms.apply_filter('generate_alpha_wrap')

The documentation says I should be able to specify a parameter alpha_fraction with this filter.
However, this code

ms.apply_filter('generate_alpha_wrap', alpha_fraction=0.01)

gives this error

PyMeshLabException: Parameter alpha_fraction not found for filter generate_alpha_wrap. Please check the documentation.

What is the correct way to specify the parameter?

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