Giter VIP home page Giter VIP logo

warping's Introduction

Warping Build Status

This repository contains the code for warping a source mesh by deforming a closed template mesh.

Installation

You can grab the sources by cloning this repository or downloading a .zip archive of the sources. In order to build the project, navigate to the created directory and in a command prompt type:

mkdir build
cd build
cmake ..
make
(sudo) make install

Usage

In a terminal, run:

warping [-h] [-p] [- nit n] [-load l] [-lame lambda mu] [-yp young poisson] [-t template_file[.mesh]] -s source_file[.mesh]

The square braces indicate optional arguments. Some commands have flags, some others do not.

The options and flags are:

-h                         show the default parameters and exit
-p                         print output at each iteration
-nit  n                    number of iterations desired
-load l                    pressure magnitude
-lame lambda mu            Lame coefficients
-yp   young poisson        Young and Poisson coefficients
-t template_file.mesh      name of the template mesh file ( optional )
-s source_file.mesh        name of the source mesh file ( mandatory )

When the -t template_file[.mesh] is not provided, the code takes in input a default spherical template "sphere.mesh" (provided in the folder demo).

Authors and contributors

warping has been initiated by Maya de Buhan (Université Paris Descartes) and Chiara Nardoni (Université Pierre et Marie Curie). Contributors to this project are warmly welcomed.

warping's People

Contributors

dalphin5 avatar loicnorgeot avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

dalphin5

warping's Issues

Segmentation fault on MacOS

Hello,
I report a segmentation fault using the last master (46fd770) with the last master of Commons (ISCDtoolbox/Commons@e30e350) only on Mac, both with clang and gcc-10.
Reproduced by running from the demo folder:
../build/warping -s source.mesh
Short backtrace from sanitizer:

==29589==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000000 at pc 0x00010f0c7b0f bp 0x7ffee0c1a7a0 sp 0x7ffee0c19f50
READ of size 4379182344 at 0x602000000000 thread T0
    #0 0x10f0c7b0e in __asan_memcpy (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x54b0e)
    #1 0x10f039acf in csmSort sparse.c:423
    #2 0x10f038d77 in csrPack sparse.c:483
    #3 0x10efeb6d6 in matA_P1_3d elasti1_3d.c:198
    #4 0x10efeaa7e in elasti1_3d elasti1_3d.c:280
    #5 0x10efe5520 in main main.c:329
    #6 0x7fff79bb7014 in start (libdyld.dylib:x86_64+0x1014)

Not urgent to debug, reported to keep track of it in case it reappears.

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.