Giter Site home page Giter Site logo

cartesian's Introduction

OPENSOURCE LIBS:

  • boost::dll
  • boost::filesystem
  • sol3 & luajit
  • GLM
  • CGAL

CartesianLuajitCore

  • it's a core
  • plugins based
  • compiled the luajit(static),boost::filesystem(static) ... all to the core
  • so if you write app based on cartesian, just link cartesian, only include there headers

CartesianPlugins

  • write the plugin for Cartesian core
  • if you want write plugin for cartesian,just try this:
#include "CartesianEntryPoint.h"
#include "sol.hpp"
#include <cmath>

void newOp(void *lua){
    auto *luaPtr = static_cast<sol::state *> (lua);
    luaPtr->set_function("sin",static_cast<float(*) (float)> (&sin));
    luaPtr->set_function("cos",static_cast<float(*) (float)> (&cos));
    luaPtr->set_function("acos",static_cast<float(*) (float)> (&acos));
    luaPtr->set_function("asin",static_cast<float(*) (float)> (&asin));
    luaPtr->set_function("pow",static_cast<double(*) (double,double)> (&pow));
    luaPtr->set_function("ceil",static_cast<double(*) (double)> (&ceil));
    luaPtr->set_function("floor",static_cast<double(*) (double)> (&floor));
}
  • if you use katana, maya, houdini with cartesian this functions all for your platform

  • binding GLM::mat* glm::vec*

  • binding CGAL::surfacemesh

KatanaCartesianJIT

  • the whole new lua function for katana
  • Similar to Houdini vex function, BUT NOW IT WAS BASED LUAJIT

Sandbox

  • only for test
  • application based Cartesian

Write your own application based the cartesian

  • 1, see the Sandbox cmakeslist.txt
  • 2, link the CartesianLuajit.lib and the dll should in env PATH

LUAJIT SPEED

  • Table is highly recommended
  • But if you like. You can also use my exposed UserData, as you know, luajit doesn't optimize it
  • Even though you still want to use it, try to use all the C++ functions I exposed.

Final

爱用不用

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.