Git Product home page Git Product logo

talus's People

Contributors

dependabot[bot] avatar philippemorier avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

jimbok8

talus's Issues

refactor(frontend): draw line preview with separate boxes

Maybe use MeshBuilder.CreateBox() with box.createInstance() and

ibox.edgesColor = new Color4(1, 0, 1, 0.1);
ibox.edgesWidth = 10;
ibox.enableEdgesRendering(0.5);

to draw the temporary line.
Use color of voxel in grid for temporary boxes but apply edge-rendering. Use color of voxel to avoid z-fighting/stitching.

image

Starting a Line (but not finishing it) breaks Undo

When you start a line, select a start point, but then never finish the line, the line start voxel is not added to the undo stack but remains visible.

Steps to reproduce (tested with v0.0.5):

  1. With the + Set Voxel tool, create something like a long that looks like a 4x1x1 rectangle
  2. Choose the Line tool and set the start voxel. The start voxel of the line becomes visible
  3. Point the mouse at some other voxel to see how the line would look like, but don't click any voxel so that the line "preview" doesn't finish
  4. Then select the + Set Voxel tool again. Note that the "preview" of the line is still lingering around
  5. Use Edit โ†’ Undo. It does not undo the line: the starting point from step 2 and the "preview" line from step 4 aren't undone. Instead it directly undoes the last voxel from step 1.

Expected: probably the start voxel (from 2.) and "preview" line (from 3.) should disappear if the line tool is deselected without drawing an end voxel of the line.

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.