mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Added simple JSCAD modifier helper
Simple cube oriented around the center with a parametric interface. Just copy/paste into openjscad.org and hit shift+enter.
This commit is contained in:
		
							parent
							
								
									2e1a3eaf16
								
							
						
					
					
						commit
						2230652218
					
				
					 1 changed files with 19 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								utils/modifier_helpers/layer_generator.jscad
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								utils/modifier_helpers/layer_generator.jscad
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,19 @@
 | 
			
		|||
// title: Layer_generator
 | 
			
		||||
// written by: Joseph Lenox
 | 
			
		||||
// Used for generating cubes oriented about the center 
 | 
			
		||||
// for making simple modifier meshes.
 | 
			
		||||
 | 
			
		||||
var width = 100;
 | 
			
		||||
var layer_height = 0.3;
 | 
			
		||||
var z = 30;
 | 
			
		||||
function main() {
 | 
			
		||||
    
 | 
			
		||||
    return cube(size=[width,width,layer_height], center=true).translate([0,0,z]);    
 | 
			
		||||
}
 | 
			
		||||
function getParameterDefinitions() {
 | 
			
		||||
  return [
 | 
			
		||||
      { name: 'width', type: 'float', initial: 100, caption: "Width of the cube:" },
 | 
			
		||||
      { name: 'layer_height', type: 'float', initial: 0.3, caption: "Layer height used:" },
 | 
			
		||||
      { name: 'z', type: 'float', initial: 0, caption: "Z:" }
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue