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
+35 -3
View File
@@ -28,15 +28,47 @@
//
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
using StgSharp.Model.Step;
using StgSharp.Script;
using StgSharp.Script.Express;
namespace StgSharp.Modeling.Items
using System;
namespace StgSharp.Model.Step
{
public abstract class StepPlacement : StepGeometricRepresentationItem
public class StepPlacement : StepGeometricRepresentationItem, IExpConvertableFrom<StepPlacement>
{
protected StepPlacement( string name ) : base( name ) { }
private StepCartesianPoint _location;
public StepPlacement( StepModel model ) : base( model ) { }
public StepPlacement( StepModel model, StepCartesianPoint location )
: base( model )
{
_location = location;
}
public StepCartesianPoint Location
{
get { return _location; }
set
{
ArgumentNullException.ThrowIfNull( value );
_location = value;
}
}
public void FromInstance( StepPlacement entity )
{
base.FromInstance( entity );
this.Location = entity.Location;
}
public override bool IsConvertableTo( string entityName )
{
return base.IsConvertableTo( entityName ) || entityName == "StepPlacement";
}
}
}