586,341 active members*
3,204 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2008
    Posts
    242

    inverted y axis

    I'm writing a 2.5d cam program, and I'm a bit stuck on a problem.

    G-code generally assumes a right-hand cartesian plane (y-axis points up, x-axis points right), but a lot of processes in computer graphics (svg) use a left-hand plane (y-axis points down, x-axis points right). My program currently uses a left-hand plane, and converting it to a right-hand plane is not trivial, and would make the code rather inelegant.

    would it be acceptable if I add a feature that allows you to set an arbitrary zero point on the left-hand plane? Would this be a hindrance to the user experience, or a cool feature?
    ___________________________
    http://jack.works

  2. #2
    Join Date
    Apr 2008
    Posts
    1577
    Don't laugh too hard as I am a very amateur and beginner coder but would a simple matrix transformation work?

  3. #3
    Join Date
    Oct 2008
    Posts
    242
    it's simpler than that, flipping the y axis just means doing this: y = -y

    the problem is that the visual processing is done in flash, which uses the left-hand plane. This means that I'll have to keep track of two sets of numbers, one for the right plane and one for the left. It's just going to be messy and I don't really want to do it..
    ___________________________
    http://jack.works

Similar Threads

  1. Serious Sherline/ EMC2 problem: Inverted axis
    By bardDrab in forum Benchtop Machines
    Replies: 3
    Last Post: 03-02-2010, 02:51 AM
  2. The (+)X and (-)X are inverted or switched
    By TAProwler in forum Torchmate
    Replies: 4
    Last Post: 01-18-2009, 01:22 AM
  3. problem with Semeins 840- inverted G2 - G3
    By jkblack in forum Controller & Computer Solutions
    Replies: 0
    Last Post: 11-22-2008, 08:33 AM
  4. 100-foot Inverted Tripod
    By jimbobbus3 in forum LinuxCNC (formerly EMC2)
    Replies: 6
    Last Post: 11-30-2007, 11:45 PM
  5. Mach2 inverted engraving
    By engraver in forum Mach Software (ArtSoft software)
    Replies: 16
    Last Post: 09-07-2003, 03:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •