This commit is contained in:
Nitload
2025-08-25 09:50:30 +08:00
parent bd0e31e922
commit 1359ff4ecc
1630 changed files with 738486 additions and 2399 deletions
+11 -17
View File
@@ -28,35 +28,29 @@
//
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
using StgSharp.Geometries;
using StgSharp.Model.Step;
using StgSharp.Script;
using StgSharp.Script.Express;
namespace StgSharp.Model.Step
namespace StgSharp.Modeling.Items
{
public class StepPlane : StepElementarySurface, IExpConvertableFrom<StepPlane>
public class StepPlane : StepElementarySurface
{
public StepPlane( StepModel model ) : base( model ) { }
private StepPlane() : base() { }
public StepPlane( StepModel model, StepAxis2Placement3D position )
: base( model, position ) { }
public StepPlane( string name, StepAxis2Placement3D position ) : base( name, position ) { }
public override StepItemType ItemType => StepItemType.Plane;
public void FromInstance( StepPlane entity )
internal static StepPlane CreateFromSyntaxList( StepBinder binder, ExpNode syntaxList )
{
base.FromInstance( entity );
}
internal static StepPlane FromSyntax( StepModel binder, ExpSyntaxNode syntaxList )
{
ExpNodePresidentEnumerator enumerator = new ExpNodePresidentEnumerator( syntaxList );
StepPlane plane = new StepPlane( binder );
ExpNodeNextEnumerator enumerator = new ExpNodeNextEnumerator( syntaxList );
StepPlane plane = new StepPlane();
enumerator.AssertEnumeratorCount( 2 );
plane.Name = ( enumerator[ 0 ]as ExpStringNode )!.Value;
plane.Position = binder[ enumerator[ 1 ] ] as StepAxis2Placement3D;
plane.Name = enumerator.Values[ 0 ].CodeConvertTemplate;
binder.BindValue(
enumerator.Values[ 1 ], v => plane.Position = v.AsType<StepAxis2Placement3D>() );
return plane;
}