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
+17 -11
View File
@@ -28,29 +28,35 @@
//
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
using StgSharp.Geometries;
using StgSharp.Model.Step;
using StgSharp.Script;
using StgSharp.Script.Express;
namespace StgSharp.Modeling.Items
namespace StgSharp.Model.Step
{
public class StepPlane : StepElementarySurface
public class StepPlane : StepElementarySurface, IExpConvertableFrom<StepPlane>
{
private StepPlane() : base() { }
public StepPlane( StepModel model ) : base( model ) { }
public StepPlane( string name, StepAxis2Placement3D position ) : base( name, position ) { }
public StepPlane( StepModel model, StepAxis2Placement3D position )
: base( model, position ) { }
public override StepItemType ItemType => StepItemType.Plane;
internal static StepPlane CreateFromSyntaxList( StepBinder binder, ExpNode syntaxList )
public void FromInstance( StepPlane entity )
{
ExpNodeNextEnumerator enumerator = new ExpNodeNextEnumerator( syntaxList );
StepPlane plane = new StepPlane();
base.FromInstance( entity );
}
internal static StepPlane FromSyntax( StepModel binder, ExpSyntaxNode syntaxList )
{
ExpNodePresidentEnumerator enumerator = new ExpNodePresidentEnumerator( syntaxList );
StepPlane plane = new StepPlane( binder );
enumerator.AssertEnumeratorCount( 2 );
plane.Name = enumerator.Values[ 0 ].CodeConvertTemplate;
binder.BindValue(
enumerator.Values[ 1 ], v => plane.Position = v.AsType<StepAxis2Placement3D>() );
plane.Name = ( enumerator[ 0 ]as ExpStringNode )!.Value;
plane.Position = binder[ enumerator[ 1 ] ] as StepAxis2Placement3D;
return plane;
}