Adding a hole primitive
This commit is contained in:
parent
987808bc40
commit
ecdea63e56
5 changed files with 23 additions and 1 deletions
|
|
@ -159,4 +159,22 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
change.SetRowVisible(nameof(Radius), () => Round);
|
||||
}
|
||||
}
|
||||
|
||||
public class CubeHoleObject3D : CubeObject3D
|
||||
{
|
||||
public override string ThumbnailName => "CubeHole";
|
||||
|
||||
public CubeHoleObject3D()
|
||||
{
|
||||
OutputType = PrintOutputTypes.Hole;
|
||||
}
|
||||
|
||||
public static async Task<CubeHoleObject3D> Create()
|
||||
{
|
||||
var item = new CubeHoleObject3D();
|
||||
await item.Rebuild();
|
||||
return item;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -63,6 +63,10 @@ namespace MatterHackers.MatterControl.Library
|
|||
"Cube".Localize(),
|
||||
async () => await CubeObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Hole".Localize(),
|
||||
async () => await CubeHoleObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Pyramid".Localize(),
|
||||
async () => await PyramidObject3D.Create())
|
||||
|
|
|
|||
BIN
StaticData/Images/Thumbnails/7375217172574943763-256x256.png
Normal file
BIN
StaticData/Images/Thumbnails/7375217172574943763-256x256.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
StaticData/Images/Thumbnails/9963651946799342786-256x256.png
Normal file
BIN
StaticData/Images/Thumbnails/9963651946799342786-256x256.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
|
|
@ -1 +1 @@
|
|||
Subproject commit 6750bc4daa8c0188b61ebf61bbdeb3ae57b8a998
|
||||
Subproject commit ef5fad208c4bf4361ef0de61de013c8b79b2d977
|
||||
Loading…
Add table
Add a link
Reference in a new issue