Code Monkey home page Code Monkey logo

nobu-n2002 / stl-levelset-converter Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 1.83 MB

This project provides a code for converting STL files into level set distributions stored in orthogonal grids. The level set distribution, calculated using Signed Distance Fields (SDF), represents the distance from a geometric surface. Useful for applications such as computational fluid dynamics (CFD) and computer-aided design (CAD).

License: MIT License

CMake 7.83% Shell 0.35% C++ 91.81%
converter level-set stl-model

stl-levelset-converter's Introduction

STL to Porosity Converter

This project provides a C++ code for converting STL files into level set distributions stored in orthogonal grids. The level set distribution, calculated using Signed Distance Fields (SDF), represents the distance from a geometric surface. The resulting data can be utilized for various applications such as computational fluid dynamics (CFD), computer-aided design (CAD), and medical image processing.

Installation

  1. Clone the repository:

    git clone https://github.com/username/repository.git
  2. Build using CMake:

    cmake -S . -B build
    cmake --build build

Usage

  1. Configuration:

    Modify the config.txt file to specify the input STL file path, output CSV file name, output VTK file path, bounds factor, grid resolution, axis, thickness parameter, output VTK flag, and number of threads.

  2. Execution:

    Run the compiled executable:

    ./build/src/STLToPorosity

    The output CSV file containing cell dimensions and scalar values will be generated. If the outputVtk option is set to true, an additional VTK file will be created.

stl-levelset-converter's People

Stargazers

Younghwa CHO avatar Yusuke Takahashi avatar Nobuto Nakamichi avatar

Watchers

Nobuto Nakamichi 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.