From d3e7c61b3d200d9ec37fb4557dbdb8351421b85e Mon Sep 17 00:00:00 2001 From: Marius Kern <mariusskern@gmail.com> Date: Sun, 7 Jul 2024 17:16:25 +0200 Subject: [PATCH] Prism --- .../Scripts/MMTServer/CommunicationProtocoll/MMTConstants.cs | 4 ++-- Assets/Scripts/MeshGenerator/TriangluarPrismGenerator.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/MMTServer/CommunicationProtocoll/MMTConstants.cs b/Assets/Scripts/MMTServer/CommunicationProtocoll/MMTConstants.cs index 8a5ab719..1b826f8f 100644 --- a/Assets/Scripts/MMTServer/CommunicationProtocoll/MMTConstants.cs +++ b/Assets/Scripts/MMTServer/CommunicationProtocoll/MMTConstants.cs @@ -48,8 +48,8 @@ public static class MMTConstants public static readonly string TriangleType = "http://mathhub.info/MitM/core/geometry?Geometry/Triangles?triangle"; public static readonly string TriangleScroll = "http://mathhub.info/FrameIT/frameworld?TriangleScroll"; - public static readonly string PrismCons = "http://mathhub.info/FrameIT/frameworld?prismType?prismCons"; - public static readonly string PrismType = "http://mathhub.info/FrameIT/frameworld?RectangleType?prismType"; + public static readonly string PrismCons = "http://mathhub.info/FrameIT/frameworld?PrismType?prismCons"; + public static readonly string PrismType = "http://mathhub.info/FrameIT/frameworld?PrismType?prismType"; public static readonly string PrismScroll = "http://mathhub.info/FrameIT/frameworld?PrismScroll"; public static readonly string CuboidCons = "http://mathhub.info/FrameIT/frameworld?CuboidType?cuboidCons"; diff --git a/Assets/Scripts/MeshGenerator/TriangluarPrismGenerator.cs b/Assets/Scripts/MeshGenerator/TriangluarPrismGenerator.cs index 0e2edd06..c1d2db2d 100644 --- a/Assets/Scripts/MeshGenerator/TriangluarPrismGenerator.cs +++ b/Assets/Scripts/MeshGenerator/TriangluarPrismGenerator.cs @@ -62,7 +62,7 @@ public static (Vector3[], int[]) CreateTriangluarPrism(float triangle_ab, float { Vector3[] bottom_edge = GetTrianglePoints(triangle_ab, triangle_height, triangle_c); Vector3[] bottom_vertices = - new Vector3[] { offset } + new Vector3[] { } .AppendRange(bottom_edge) .Append(bottom_edge[0]) .ToArray(); @@ -70,7 +70,7 @@ public static (Vector3[], int[]) CreateTriangluarPrism(float triangle_ab, float Vector3[] top_edge = GetTrianglePoints(triangle_ab, triangle_height, triangle_c, new Vector3(0, 0, -prism_height)); Vector3[] top_vertices = - new Vector3[] { offset } + new Vector3[] { } .AppendRange(top_edge) .Append(top_edge[0]) .ToArray(); -- GitLab