mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 08:48:58 +08:00
Remove forgotten unused function
This function is now in the Polygon class in Uranium. Contributes to issue CURA-2407.
This commit is contained in:
parent
777a89ce46
commit
4fc30615ab
@ -30,25 +30,6 @@ import UM.Settings.ContainerRegistry
|
|||||||
PRIME_CLEARANCE = 1.5
|
PRIME_CLEARANCE = 1.5
|
||||||
|
|
||||||
|
|
||||||
def approximatedCircleVertices(r):
|
|
||||||
"""
|
|
||||||
Return vertices from an approximated circle.
|
|
||||||
:param r: radius
|
|
||||||
:return: numpy 2-array with the vertices
|
|
||||||
"""
|
|
||||||
|
|
||||||
return numpy.array([
|
|
||||||
[-r, 0],
|
|
||||||
[-r * 0.707, r * 0.707],
|
|
||||||
[0, r],
|
|
||||||
[r * 0.707, r * 0.707],
|
|
||||||
[r, 0],
|
|
||||||
[r * 0.707, -r * 0.707],
|
|
||||||
[0, -r],
|
|
||||||
[-r * 0.707, -r * 0.707]
|
|
||||||
], numpy.float32)
|
|
||||||
|
|
||||||
|
|
||||||
## Build volume is a special kind of node that is responsible for rendering the printable area & disallowed areas.
|
## Build volume is a special kind of node that is responsible for rendering the printable area & disallowed areas.
|
||||||
class BuildVolume(SceneNode):
|
class BuildVolume(SceneNode):
|
||||||
VolumeOutlineColor = Color(12, 169, 227, 255)
|
VolumeOutlineColor = Color(12, 169, 227, 255)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user