Giter Site home page Giter Site logo

su-cnc's Introduction

su-cnc

Basic CNC API for SketchUp. Not even work in progress. This readme is to help me keep track of the general approach I plan on taking when writing this extension.

PersistantObject

A persistant object is meant to tie the following together

  • Ruby objects
  • SketchUp entities
  • Attribute dictionaries

Here is some pseudo code to illustrate how they work

class Foo < PersistantObject
  def initialize(entities)
    super
    #construct some geometry and add to the entities
  end
end

ents = Sketchup.active_model.entities
foo = Foo.new(ents)

foo["my_data"] = "something interesting"

ent = ents[0]
obj = Foo.load(ent)
puts obj.is_a?(Foo) #=>true
puts obj["my_data"] #=>"something interesting"

Tree

A helper to iterate through the tree of the model, group or component instance to find persistant objects

model = Sketchup.active_model
puts Tree.find(Foo, model) #=> [foo, foo, foo]

Main classes and modules

  • Workpiece (Persistant Object)
  • Operation (Persistant Object)
    • Toolpath (Persistant Object)
    • Hole (Persistant Object)
  • Machine
  • Parser
  • Job
  • Simmulation

General workflow

  • Workpiece is defined. Design is double nested
  • Basic tool for defining toolpaths
  • Basic tool for defining holes
  • Parse
  • Simmulate

su-cnc's People

Contributors

noelwarr avatar

Stargazers

Pantelis Koukousoulas avatar

Watchers

James Cloos 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.