GithubHelp home page GithubHelp logo

jackzhousz / metricdrivenframe3d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xianzhongfang/metricdrivenframe3d

0.0 0.0 0.0 9.11 MB

Executable file of paper Metric-Driven 3D Frame Field Generation

License: BSD 3-Clause "New" or "Revised" License

Shell 25.72% Makefile 74.28%

metricdrivenframe3d's Introduction

MetricDrivenFrame3D

Executable file of the paper Metric-Driven 3D Frame Field Generation

Author: Xianzhong Fang , Email: xzfangcs [at] 163 [dot] com

Compilation Environment: Ubuntu 20.04 (Linux)

Install third libraries in Ubuntu 20.04

$ sudo apt install gfortran libalglib-dev libblas-dev libcholmod3 libgomp1 minpack-dev petsc-dev

A simple test

$ bash run.sh

File Format

Frame field file format (ff3)

N is the number of tetrahedra, the frame in each tet is defined as a 3x3 matrix.

9 N
F11 F21 F31 F21 F22 F23 F31 F32 F33
...
...
...

Metric field file format (s3)

N is the number of tetrahedra, S=g^{-1/2} in each tet is defined as a 3x3 SPD. In order to save space, store each metric with half of SPD.

6 N
S11 S21 S31 S22 S32 S33
...
...
...

Frame field constraints file format (ffc3)

number-of-constraints
tet-id plane v1 v2 v3 weight
tet-id frame x1 y1 z1 x2 y2 z2 weight
tet-id size s weight
...
...

Format transformation

The results are stored with binary, can be transformed into ASCII by

$ ./bin/MetricDrivenFrame3D prog=mat_b2a in_mat=<...> out_mat=<...>

also reversed by

$ ./bin/MetricDrivenFrame3D prog=mat_a2b in_mat=<...> out_mat=<...>

metricdrivenframe3d's People

Contributors

xianzhongfang avatar

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.