Merge from branch giga

This commit is contained in:
Nitload
2025-08-31 10:42:51 +08:00
parent 1fc687f7d0
commit 1a0ccdd8cb
1619 changed files with 2812 additions and 733136 deletions
+19 -15
View File
@@ -28,33 +28,37 @@
//
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
using StgSharp.Model.Step;
using StgSharp.Script;
using StgSharp.Script.Express;
namespace StgSharp.Modeling.Items
namespace StgSharp.Model.Step
{
public class StepFaceOuterBound : StepFaceBound
public class StepFaceOuterBound : StepFaceBound, IExpConvertableFrom<StepFaceOuterBound>
{
private StepFaceOuterBound() : base() { }
private StepFaceOuterBound( StepModel model ) : base( model ) { }
public StepFaceOuterBound( string name, StepLoop bound, bool orientation )
: base( name, bound, orientation ) { }
public StepFaceOuterBound( StepModel model, StepLoop bound, bool orientation )
: base( model, bound, orientation ) { }
public override StepItemType ItemType => StepItemType.FaceOuterBound;
internal static new StepFaceOuterBound CreateFromSyntaxList(
StepBinder binder,
ExpNode syntaxList )
public void FromInstance( StepFaceOuterBound entity )
{
ExpNodeNextEnumerator enumerator = new ExpNodeNextEnumerator( syntaxList );
base.FromInstance( entity );
}
internal static new StepFaceOuterBound FromSyntax(
StepModel binder,
ExpSyntaxNode syntaxList )
{
ExpNodePresidentEnumerator enumerator = new ExpNodePresidentEnumerator( syntaxList );
enumerator.AssertEnumeratorCount( 3 );
StepFaceOuterBound faceOuterBound = new StepFaceOuterBound();
faceOuterBound.Name = enumerator.Values[ 0 ].CodeConvertTemplate;
binder.BindValue(
enumerator.Values[ 1 ], v => faceOuterBound.Bound = v.AsType<StepLoop>() );
faceOuterBound.Orientation = ( enumerator.Values[ 2 ]as ExpBoolNode )!.Value;
StepFaceOuterBound faceOuterBound = new StepFaceOuterBound( binder );
faceOuterBound.Name = ( enumerator[ 0 ]as ExpStringNode )!.Value;
faceOuterBound.Bound = binder[ enumerator[ 1 ] ] as StepLoop;
faceOuterBound.Orientation = ( enumerator[ 2 ]as ExpBoolNode )!.Value;
return faceOuterBound;
}