1241589d18
* feat: adds wip classes for brep/subd/extrusion-x * Get rid of dub code on ExtrusionX SubDX BrepX * fix: Run format * chore: formatting * chore: more formatting help dis annoying --------- Co-authored-by: oguzhankoral <oguzhankoral@gmail.com> Co-authored-by: Alan Rynne <alan@speckle.systems> Co-authored-by: Adam Hathcock <adamhathcock@users.noreply.github.com>
34 lines
821 B
C#
34 lines
821 B
C#
using Speckle.Objects.Other;
|
|
using Speckle.Sdk.Models;
|
|
|
|
namespace Speckle.Objects.Geometry;
|
|
|
|
public interface IRawEncodedObject
|
|
{
|
|
public RawEncoding encodedValue { get; set; }
|
|
}
|
|
|
|
public abstract class RawEncodedObject : Base, IDisplayValue<List<Mesh>>, IRawEncodedObject, IHasArea, IHasVolume
|
|
{
|
|
[DetachProperty]
|
|
public required List<Mesh> displayValue { get; set; }
|
|
|
|
[DetachProperty]
|
|
public required RawEncoding encodedValue { get; set; }
|
|
|
|
public required string units { get; set; }
|
|
|
|
public double area { get; set; }
|
|
|
|
public double volume { get; set; }
|
|
}
|
|
|
|
[SpeckleType("Objects.Geometry.BrepX")]
|
|
public class BrepX : RawEncodedObject;
|
|
|
|
[SpeckleType("Objects.Geometry.ExtrusionX")]
|
|
public class ExtrusionX : RawEncodedObject;
|
|
|
|
[SpeckleType("Objects.Geometry.SubDX")]
|
|
public class SubDX : RawEncodedObject;
|