This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
forked from Ultimaker/CuraEngine
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/ultimaker/curaengine
- Loading branch information
Showing
33 changed files
with
1,459 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
//Copyright (c) 2021 Ultimaker B.V. | ||
//CuraEngine is released under the terms of the AGPLv3 or higher. | ||
|
||
#include "PathOrder.h" //The definitions we're implementing here. | ||
#include "sliceDataStorage.h" //For SliceLayerPart and related parts to reorder. | ||
|
||
//Since the PathOrder is a template class, we will only implement the template specializations in this file. | ||
//The templated segments need to go into the header. | ||
|
||
namespace cura | ||
{ | ||
|
||
template<> | ||
ConstPolygonRef PathOrder<ConstPolygonRef>::getVertexData(ConstPolygonRef path) | ||
{ | ||
return path; | ||
} | ||
|
||
template<> | ||
ConstPolygonRef PathOrder<PolygonRef>::getVertexData(PolygonRef path) | ||
{ | ||
return path; | ||
} | ||
|
||
template<> | ||
ConstPolygonRef PathOrder<const SkinPart*>::getVertexData(const SkinPart* path) | ||
{ | ||
return path->outline.outerPolygon(); | ||
} | ||
|
||
template<> | ||
ConstPolygonRef PathOrder<const SliceLayerPart*>::getVertexData(const SliceLayerPart* path) | ||
{ | ||
return path->outline.outerPolygon(); | ||
} | ||
|
||
template<> | ||
ConstPolygonRef PathOrder<const SupportInfillPart*>::getVertexData(const SupportInfillPart* path) | ||
{ | ||
return path->outline.outerPolygon(); | ||
} | ||
|
||
} |
Oops, something went wrong.