GithubHelp home page GithubHelp logo

Comments (1)

doug-moen avatar doug-moen commented on May 22, 2024

I'm not sure about multi-key combinations, or repeated presses of the same key to toggle through states. That sounds a little complicated. However, I would endorse a simple interface that maps single keys onto some of the more useful viewer options in OpenSCAD. For example,

  • T -> top
  • B -> bottom
  • L -> left
  • R -> right
  • SHIFT+F -> front
  • SHIFT+B -> back
  • O -> orthogonal
  • P -> perspective

(Or propose a better key mapping.)

I think that TBLRFB could probably be implemented simply by changing the existing 3D camera variables, same as how the HOME key (reset) works.

The O/P keys would, I think, require somebody who understands the difference between a "perspective projection" and an "orthographic projection". I think changes are required to the 3D rendering code, and possibly the addition of a new uniform variable. There are lots of tutorials on the web that explain these concepts, in the context of OpenGL. Look at the fragment shader generated by -o foo.frag on the command line: the code is in libcurv/geom/frag.cc.

I am not sure what you want the "Zoom Extents" command to do. Isn't that just a command that makes all objects visible? Doesn't the HOME key already do that?

from curv.

Related Issues (20)

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.