Git Product home page Git Product logo

Comments (6)

nschloe avatar nschloe commented on June 13, 2024

Well, you definitely need gmp and mpfr to compile. I have no idea if they have support for windows. Perhaps the CGAL mailing list is a better place to ask.

from pygalmesh.

talavinari avatar talavinari commented on June 13, 2024

OK will try there, thanks :)

from pygalmesh.

acfaruk avatar acfaruk commented on June 13, 2024

If you install CGAL with the windows installer the libraries gmp and mpfr are installed as well. You would find them in the folder INSTALL_PATH\auxiliary\gmp.

I was able to make it work on windows, but I got an assertion error in one of the tests:

__________________________________________________________________________________ test_volume_from_surface ___________________________________________________________________________________ 

    def test_volume_from_surface():
        this_dir = os.path.dirname(os.path.abspath(__file__))
        mesh = pygalmesh.generate_volume_mesh_from_surface_mesh(
            os.path.join(this_dir, "meshes", "elephant.vtu"),
            facet_angle=25.0,
            facet_size=0.15,
            facet_distance=0.008,
            cell_radius_edge_ratio=3.0,
            verbose=False,
        )
    
        tol = 1.0e-3
        assert abs(max(mesh.points[:, 0]) - 0.357612477657) < tol
        assert abs(min(mesh.points[:, 0]) + 0.358747130015) < tol
>       assert abs(max(mesh.points[:, 1]) - 0.496137874959) < tol
E       assert 0.014181661246307764 < 0.001
E        +  where 0.014181661246307764 = abs((0.4819562 - 0.496137874959))
E        +    where 0.4819562 = max(array([-0.19258097, -0.09461719, -0.3258206 ,  0.06994132, -0.1434645 ,\n       -0.11351405,  0.05553488,  0.0659714 , ...5258,  0.37136012, -0.1880949 , -0.45568204,\n       -0.10133088,  0.07262085, -0.20886302, -0.19134675], dtype=float32))

test\test_volume_from_surface.py:21: AssertionError

from pygalmesh.

talavinari avatar talavinari commented on June 13, 2024

Thanks @acfaruk , all other functionality works as expected on you win machine ?

from pygalmesh.

acfaruk avatar acfaruk commented on June 13, 2024

I later switched to another library, but the few examples I ran, were running as expected.

from pygalmesh.

nschloe avatar nschloe commented on June 13, 2024

I suppose this is dealt with now. Feel free to reopen if not.

from pygalmesh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.