Git Product home page Git Product logo

scad-preview's Introduction

scad-preview.el

Preview SCAD models in real-time in Emacs

SCAD モデルを Emacs 上でプレビュー

Screenshot

screenshot.png

Installation

Install scad-mode and load this script :

(require 'scad-preview)

Then call M-x scad-preview-mode in a scad-mode buffer to open the preview pane. You can close the pane by calling scad-preview-mode again.

Keybindings

You can rotate the preview image with following keys :

<right>, l
rotate+ around z-axis
<left>, h
rotate- around z-axis
<up>, k
decrease distance (zoom in)
<down>, j
increase distance (zoom out)
C-<left>, C-h
rotate+ around y-axis
C-<right>, C-l
rotate- around y-axis
C-<up>, C-k
rotate+ around x-axis
C-<down>, C-j
rotate- around x-axis
M-<left>, M-h
translate+ along x-axis
M-<right>, M-l
translate- along x-axis
M-<up>, M=k
translate- along z-axis
M-<down>, M-j
translate+ along z-axis
r
reset view

Mouse

Now it is possible to use the mouse to manipulate the preview image. Mouse usage slightly resembles the original OpenScad manipulation. The reason behind the ununified usage of C key is laziness (haven’t found a trivial way to use mouse-wheel without modifier key, or use drag with C/M).

C-mouse-4, C-wheel-up
zoom-out
C-mouse-5, C-wheel-down
zoom-in
drag-mouse-3
rotate
drag-mouse-1
translate

scad-preview's People

Contributors

zk-phi avatar acheam0 avatar tarsius avatar

Watchers

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