Giter Site home page Giter Site logo

linecode / collisionkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hazelight/collisionkit

0.0 1.0 0.0 289 KB

Exposes commands in Modo for creating Convex Hull & Optimal Bounding Box using CGAL ( The Computational Geometry Algorithms Library )

License: GNU General Public License v3.0

C++ 80.47% CMake 19.53%

collisionkit's Introduction

Installation

Windows users can find a packaged version in release

Mac and unix users are free to compile the kit from source.

Building

Here I will just detail the steps I took to download dependencies and compile the final plug-in, so mind these are the steps I took for Windows 64bit

Following instructions at https://doc.cgal.org/latest/Manual/windows.html#sec-installing-with-vcpkg

Open a terminal to the root of this kit

Get and install vcpkg, a package manager for windows,

git clone https://github.com/microsoft/vcpkg
cd vcpkg
bootstrap-vcpkg.bat

Then using vcpkg install cgal to get all dependencies for it

vcpkg.exe install yasm-tools:x86-windows
vcpkg.exe install cgal:x64-windows
vcpkg.exe install eigen3:x64-windows

Installation will take quite some time, around 30 minutes for me

Run cmake-gui and find vcpkg.cmake for "Specify Toolchain for Cross-compiling" like the CGAL example shows, set the cmake path to the LXSDK

Configure and Generate the project.

Usage

Kit will currently expose two new commands to Modo,

  • ucx.new, for making a new mesh item with a convex hull of the first selected mesh
  • ubx.new, making an optimized bounding box of the first selected mesh

Given a selected source mesh

stanford bunny

Users can run ucx.new to create a new mesh item like

convex hull of stanford bunny

Or ubx.new for making an optimized fitted bounding box around the model

optimized bounding box around stanford bunny

Model used was the Stanford Bunny provided by Stanford Computer Graphics Laboratory, http://graphics.stanford.edu/data/3Dscanrep/

collisionkit's People

Contributors

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