Creates a 3D solid by revolving a 2D shape.
	  	
	  
		
	    	
	    	 Syntax:  | 
	    	
	            | 
					DlxRevolve.Shape(shape, scale=1.0)
				 | 
	   	    
	    	
	     
		   
		Parameters
      
		
		
			
				
					
						| Parameter | 
						Description | 
					
					
						| shape | 
						A DlxFigure object with the shape. | 
					
					
						| scale | 
						Shape scaling. | 
					
				
			 
		 
		   
		Return Value
		If the operation ends correctly it returns true otherwise it returns false.
									
	Example
	
		
			
				|  
				 | 
				
                    
                         Copy code
				 | 
			
			
				
  function OnBuild3DModel()
{
  var ctx = FWiz.Get3DModelCtx();
  var style = FWiz.Get3DStyle(0);
  style.SetStyle("gold");
  var style1 = FWiz.Get3DStyle(1);
  style1.SetStyle("jade");
  var shape = new DlxFigure();
  shape.AddPoint(new DlxPoint(0, 0));
  shape.AddPoint(new DlxPoint(5, 0));
  shape.AddPoint(new DlxPoint(5, 8));
  shape.AddPoint(new DlxPoint(0, 12));
  shape.EndShape();
  var obj = new DlxRevolve(style);
  obj.AddRing(style1, 6, 7);
  obj.Shape(shape);
  ctx.Add(obj);
}
				 | 
			
		
	 
	    
		See also