GithubHelp home page GithubHelp logo

ezhangle / meshy-tools Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 78 KB

Set of tools to perform simple measurements/manipulations on 3D meshes in OFF format.

License: ISC License

Makefile 5.83% C 92.00% C++ 1.64% Batchfile 0.53%

meshy-tools's Introduction

OFFtools (v0.9) ---------------

These programs are release under a 2-clause BSD licence (see LICENCE),
but I'd appreciate it if you could drop me an email on
[email protected] and let me know if you find them useful.

To build, just type "make" in this directory. These programs have been
written and (lightly) tested on OpenBSD, linux and Windows, the compile
using GCC with -Wall -Wextra -pedantic and -std=c89 without any
complaints so they should be fine on other platforms. 

COFF and OFF files are both dealt with transparently, likewise CNOFF and
NOFF files.

Known issues:
	- add_normals does not compute normals correctly.


------strip_normals------
Remove normals from NOFF and CNOFF files and (optionally) dump them to an
external file.

------add_normals------
Adds normal data to OFF and COFF files by calculating the normal and
barycentre (``centre of mass'') for each face. It then computes the
normal of a vertex as a weighted sum of all adjacent face-normals. The
weights are 1 / (1 + distance to barycentre).

If a file of per-vertex normal data is provided, these data will be
used instead of calculating the normal information.



------strip_colour------
Remove colour data from a COFF or CNOFF file and (optionally) dump them
to an external file.

------add_colour------
Takes r,g and b values and applies this colour to all faces.  If a
colour file produced by strip_colour is provided, these colours will be
used.

meshy-tools's People

Watchers

 avatar  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.