User Tools

Site Tools


snapping_in_pcb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
snapping_in_pcb [2017/10/29 17:04]
cparker Initial revision
snapping_in_pcb [2017/11/05 16:10]
cparker [Related Pages]
Line 1: Line 1:
 This page attempts to document the snapping system in pcb. This page attempts to document the snapping system in pcb.
  
-= Current Implementation =+The snapping system is what takes the location of the cursor (the arrow representing the position of the mouse on the screen) and translates it into the coordinates on the board where actions take place. For example, the snapping system currently restricts the position of the crosshair to the closest grid point to the cursor. If you move the cursor near a pin or a pad, the snapping system positions the crosshair at the center of that pin or pad.
  
-Proposed ​Implementation =+===== Current System ===== 
 + 
 +==== Behavior ==== 
 + 
 +The snapping system in pcb is always active, and cannot be disabled. The snapping order... will be documented the next time I edit this page! 
 + 
 +==== Implementation ==== 
 +In pcb 4.0.2, snapping is implemented in crosshair.c,​ towards the end of the file. It is entirely integrated with the crosshair. 
 + 
 +First, there is a structure that holds the information about where the crosshair is currently snapped. 
 +There is a series of functions that implement snapping. 
 + 
 +===== Proposed System ===== 
 + 
 +===== Related Pages ===== 
 +  * [[PCB Crosshair|PCB Crosshair]]
  
snapping_in_pcb.txt · Last modified: 2019/03/21 12:50 by cparker