Code Monkey home page Code Monkey logo

surf's Introduction

Surf - prototyping/shaping tools

This is a personal project that was initially intended to help with the shaping of a DIY board. Although the existing computer-assisted shaping tools work well and provide a lot of flexibility they are all proprietary and the really low-level features are unaccessible.

Python and JS

The idea is to have a high-level GUI web-app to shape the board and then to have a Python API to retieve the necessary cuts and projections with more control.

IO format: board.json

In order to save the prototypes a json-based format is used:

{
    "y": [
        [0, 1.2899999999999994, 0, 1, 7],
        [0.22, 1.1499999999999992, 1, 1, -1],
        ["... other points"],
        [0, 0.9758333333333337, 0, 1, 0]
    ],
    "x": [
        [0, 1.0000000000000004, 0, 0, 6],
        ["... other points"],
        [0, 0, 0, 0, 4]
    ],
    "x0": [
        ["... same"],
    ],
    "z": [
        ["... same"],
    ],
    "length": 222,
    "width": 28.5,
    "thickness": 7.2,
    "continuity": []
}

y, x, x0 and z nested arrays are Bezier curves each of the points is described by:

  • X coordinate
  • Y coordinate
  • freedom on X axis (0 if not movable and 1 otherwise)
  • freedom on Y axis
  • a point number (from -2 to 13)

Point numbering

The point numbers correspond to the ones described in figure 1. If a point is real then the number is from 0 to 13. If the point is a tangent then the number will be -1 if the tangent corresponds to the previous "real" point and -2 if its the next.

TODO

  • better symmetry rendering (full) [0, 1]
  • make single profile view
  • limit domain to avoid fish tail problem

surf's People

Contributors

dependabot[bot] avatar kipre avatar

Stargazers

 avatar  avatar  avatar

Watchers

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