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
+4 -18
View File
@@ -28,34 +28,20 @@
//
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
using StgSharp.Model.Step;
using StgSharp.Script;
using StgSharp.Script.Express;
using System.Collections.Generic;
using System.Linq;
namespace StgSharp.Model.Step
namespace StgSharp.Modeling.Items
{
public class StepFace : StepTopologicalRepresentationItem, IExpConvertableFrom<StepFace>
public abstract class StepFace : StepTopologicalRepresentationItem
{
public StepFace( StepModel model ) : base( model ) { }
public StepFace( string name ) : base( name ) { }
public List<StepFaceBound> Bounds { get; private set; } = new List<StepFaceBound>();
public override StepItemType ItemType => StepItemType.Face;
public void FromInstance( StepFace entity )
{
base.FromInstance( entity );
Bounds = entity.Bounds;
}
public override bool IsConvertableTo( string entityName )
{
return base.IsConvertableTo( entityName ) || entityName == "StepFace";
}
public List<StepFaceBound> Bounds { get; } = new List<StepFaceBound>();
}
}