User Tools


Differences

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

Link to this comparison view

Both sides previous revision Previous revision
calculator_examples [2021/03/14 11:36]
13.66.139.70 old revision restored (2016/12/15 16:40)
calculator_examples [2021/03/25 19:52] (current)
157.90.175.65 old revision restored (2021/03/09 10:26)
Line 4: Line 4:
 ** For "Projector Gradient" calculator:** ** For "Projector Gradient" calculator:**
  
-  - This calculator will build the old "Creation Workshop" style print mask based on one of the images you have uploaded. The old location that Photonic used to store uploaded files was: "/tmp/uploaddir/"+  - This calculator will build the old "Creation Workshop" style print mask based on one of the images you have uploaded. The old location that Photonic used to upload files was: "/tmp/uploaddir/"
  
 <code> <code>
Line 15: Line 15:
 </code> </code>
  
-  - This calculator will create a radial gradient between two different colors. Those colors should both be black and their alpha transparencies should measure between 0-completely transparent to 1-completely opaque. In the example below the colors are from 0 to .58 alpha. In the example below the gradient takes up 50%(totalSizeOfGradient * .5) of the screen size. This calculator can be generated by the output from: https://wiki.photonic3d.com/doku.php?id=mask_creator+  - This calculator will create a radial gradient between two different colors. Those colors should both be black and their alpha transparencies should measure between 0-completely transparent to 1-completely opaque. In the example below the colors are from 0 to .58 alpha. In the example below the gradient takes up 50%(totalSizeOfGradient * .5) of the screen size.
  
 <code> <code>
Line 53: Line 53:
 </code> </code>
 ** For "Base Platform" Calculator:** ** For "Base Platform" Calculator:**
- 
-- Here is a calculator that turns any 2d file into a keychain. The border around the hole and the hole itself is customizable. 
- 
-<code> 
-var keyChainMM = { 
-   borderWidth: 5, 
-   holeDiameter: 10, 
-   cornerBevel: 3 
-}; 
-var keyChainPixels = { 
-   keychainStartX: centerX - (printImage.getWidth() / 2),  
-   keychainStartY: centerY - (printImage.getHeight() / 2),  
-   borderWidthX: keyChainMM.borderWidth * pixelsPerMMX, 
-   //borderWidthY: keyChainMM.borderWidth * pixelsPerMMY, 
-   cornerBevelX: keyChainMM.cornerBevel * pixelsPerMMX, 
-   cornerBevelY: keyChainMM.cornerBevel * pixelsPerMMY, 
-   holeDiameterX: keyChainMM.holeDiameter * pixelsPerMMX, 
-   holeDiameterY: keyChainMM.holeDiameter * pixelsPerMMY, 
-   extrusionX: printImage.getWidth(), 
-   extrusionY: printImage.getHeight() 
-}; 
-buildPlatformGraphics.fillRoundRect( 
-   keyChainPixels.keychainStartX, 
-   keyChainPixels.keychainStartY, 
-   keyChainPixels.extrusionX + keyChainPixels.holeDiameterX + keyChainPixels.borderWidthX * 2,  
-   keyChainPixels.extrusionY, 
-   keyChainPixels.cornerBevelX,  
-   keyChainPixels.cornerBevelY); 
-buildPlatformGraphics.setColor(java.awt.Color.BLACK); 
-buildPlatformGraphics.fillOval( 
-   keyChainPixels.keychainStartX + keyChainPixels.extrusionX + keyChainPixels.borderWidthX, 
-   centerY - keyChainPixels.holeDiameterY / 2, 
-   keyChainPixels.holeDiameterX, 
-   keyChainPixels.holeDiameterY); 
-</code> 
  
 - This calculator will create a 3D fractal for it's base platform when printing 2D images. - This calculator will create a 3D fractal for it's base platform when printing 2D images.
Line 154: Line 119:
 </code> </code>
  
-- This calculator will generate a set of vertical pegs that are designed to test the capabilities(overhang, minimal support radius) of your printer. As you can see, the set of pegs can be customized greatly depending on what you are attempting to test. The height of the print(and thus the pegs) will be determined by platform height set in the "2D File Settings" for your printer. The 2d extrusion height of your printer should be set to 0 so that you don't actually print the 2d image. The finished product of your print will be something very similar to what is displayed on figure 4, page 5 of this paper: http://hpcg.purdue.edu/papers/Vanek14SGP.pdf+- This calculator will generate a set of vertical pegs that are designed to test the capabilities of your printer. As you can see, the set of pegs can be customized greatly depending on what feature you are trying to test. The height of the print(and thus pegs) will be determined by platform height set in the 3d settings of the printer. The 2d extrusion height should be set to 0 so that you don't actually print the 2d image. The 3d print will be something very similar to what is displayed on figure 4, page 5 of this paper: http://hpcg.purdue.edu/papers/Vanek14SGP.pdf
  
 <code> <code>