Aggiunta forma al frame: Arco a tre centri

This commit is contained in:
Annamaria Sassi
2025-11-05 16:12:43 +01:00
parent ea2044c863
commit ddd339fe74
3 changed files with 30 additions and 1 deletions
+28
View File
@@ -137,6 +137,15 @@ namespace WebWindowComplex.Models
break;
}
case Shapes.THREECENTERARC:
{
DimensionList.Add(new FrameDimension(this, 1, "Width", 2000, true));
DimensionList.Add(new FrameDimension(this, 2, "Height", 2400 - (0.4 * widthVal), true));
DimensionList.Add(new FrameDimension(this, 3, "Full Height", 2400, true));
DimensionList.Add(new FrameDimension(this, 4, "Radius", 200, true));
break;
}
case Shapes.TRIANGLE:
{
DimensionList.Add(new FrameDimension(this, 1, "Width", widthVal, true));
@@ -180,6 +189,14 @@ namespace WebWindowComplex.Models
break;
}
case Shapes.THREECENTERARC:
{
JointList.Add(new Joint(this, 1, oldJointType[0].SelJointType));
JointList.Add(new Joint(this, 2, oldJointType[1].SelJointType));
JointList.Add(new Joint(this, 3, Joints.ANGLED));
JointList.Add(new Joint(this, 4, Joints.ANGLED));
break;
}
case Shapes.TRIANGLE:
{
JointList.Add(new Joint(this, 1, oldJointType[0].SelJointType));
@@ -311,6 +328,15 @@ namespace WebWindowComplex.Models
break;
}
case Shapes.THREECENTERARC:
{
DimensionList.Add(new FrameDimension(this, 1, "Width", 800, true));
DimensionList.Add(new FrameDimension(this, 2, "Height", 2100, true));
DimensionList.Add(new FrameDimension(this, 3, "Full Height", 2400, true));
DimensionList.Add(new FrameDimension(this, 4, "Radius", 100, true));
break;
}
case Shapes.TRIANGLE:
{
DimensionList.Add(new FrameDimension(this, 1, "Width", 2000, true));
@@ -344,6 +370,7 @@ namespace WebWindowComplex.Models
}
case Shapes.ARC_FULL:
case Shapes.THREECENTERARC:
{
JointList.Add(new Joint(this, 1, Joints.FULL_H));
JointList.Add(new Joint(this, 2, Joints.FULL_H));
@@ -392,6 +419,7 @@ namespace WebWindowComplex.Models
new IdNameStruct((int)Shapes.ARC, "Arc"),
new IdNameStruct((int)Shapes.ARC_FULL, "Arc Full"),
new IdNameStruct((int)Shapes.DOUBLEARC, "Double Arc"),
new IdNameStruct((int)Shapes.THREECENTERARC, "Three Center Arc"),
new IdNameStruct((int)Shapes.TRIANGLE, "Triangle")
};