Code Monkey home page Code Monkey logo

marchingcubes's Introduction

《科学计算可视化》上机作业

姓名:陈威

学号:12121085

Marching cubes

本项目实现了Marching cubes算法,并使用并行编程库OpenMP加速;使用libigl导出OBJ格式文件。

  • 顶点和边的索引使用:

image-20220629230706651

项目结构

.
├── Utils.hpp  // 读取二进制raw格式的数据,线性插值计算交点
├── MarchingCubes.hpp // Marching cubes, lookup-table, 导出OBJ格式文件
├── MarchingCubes.cpp

项目编译

环境

  • Ubuntu 22.04, Intel i7-11700 2.5GHz
  • cmake 3.22, g++ 11.2.0

依赖

  1. 项目依赖于并行编程库OpenMP

  2. 此外,项目还用到了:

    • Eigen:向量运算

    • libigl:导出OBJ格式文件

    • spdlog:用于日志输出

编译

mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

结果展示

iso value (data[i] $\in [0,4964]$) time cost
1000 1h27min
1861 112s

2. iso value = 1000

image-20220630091341117

1. iso value = 1861

image-20220629224814199

marchingcubes's People

Contributors

chenw831x avatar

Watchers

 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.