mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Merge branch 'master' of https://github.com/prusa3d/Slic3r into sidebar_fixes
This commit is contained in:
		
						commit
						8e4934d91d
					
				
					 2 changed files with 5 additions and 6 deletions
				
			
		|  | @ -1391,7 +1391,8 @@ bool SLASupportTree::generate(const PointSet &points, | |||
|                     } | ||||
| 
 | ||||
|                     double d = distance(jp, jn); | ||||
|                     if(jn(Z) <= gndlvl || d > max_len) break; | ||||
|                     if(jn(Z) <= (gndlvl + 2*cfg.head_width_mm) || d > max_len) | ||||
|                         break; | ||||
| 
 | ||||
|                     double chkd = ray_mesh_intersect(jp, dirv(jp, jn), emesh); | ||||
|                     if(chkd >= d) nearest_id = ne.second; | ||||
|  |  | |||
|  | @ -440,10 +440,6 @@ std::vector<float> SLAPrint::calculate_heights(const BoundingBoxf3& bb3d, | |||
|     auto flh = float(layer_height); | ||||
|     auto gnd = float(bb3d.min(Z)); | ||||
| 
 | ||||
|     // The first layer (the one before the initial height) is added only
 | ||||
|     // if there is no pad and no elevation value
 | ||||
|     if(minZ >= gnd) heights.emplace_back(minZ); | ||||
| 
 | ||||
|     for(float h = minZ + initial_layer_height; h < maxZ; h += flh) | ||||
|         if(h >= gnd) heights.emplace_back(h); | ||||
| 
 | ||||
|  | @ -510,6 +506,9 @@ void SLAPrint::process() | |||
|         po.m_supportdata.reset(new SLAPrintObject::SupportData()); | ||||
|         po.m_supportdata->emesh = sla::to_eigenmesh(po.transformed_mesh()); | ||||
| 
 | ||||
|         // If supports are disabled, we can skip the model scan.
 | ||||
|         if(!po.m_config.supports_enable.getBool()) return; | ||||
| 
 | ||||
|         BOOST_LOG_TRIVIAL(debug) << "Support point count " | ||||
|                                  << mo.sla_support_points.size(); | ||||
| 
 | ||||
|  | @ -693,7 +692,6 @@ void SLAPrint::process() | |||
|         // model_slice method. Only difference is that here it works with
 | ||||
|         // scaled coordinates
 | ||||
|         po.m_level_ids.clear(); | ||||
|         if(sminZ >= smodelgnd) po.m_level_ids.emplace_back(sminZ); | ||||
|         for(LevelID h = sminZ + sih; h < smaxZ; h += slh) | ||||
|             if(h >= smodelgnd) po.m_level_ids.emplace_back(h); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri