Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dui3 124 receiving curves arcs ellipses nurbs curves #3521

Merged
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Speckle.Core.Models;
using FieldDescription = ArcGIS.Core.Data.DDL.FieldDescription;

namespace Speckle.Converters.ArcGIS3.Layers;
namespace Speckle.Converters.ArcGIS3.ToHost.Raw;

public class FeatureClassToHostConverter : ITypedConverter<VectorLayer, FeatureClass>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Speckle.Converters.Common.Objects;
using Speckle.Core.Models;

namespace Speckle.Converters.ArcGIS3.Features;
namespace Speckle.Converters.ArcGIS3.ToHost.Raw;

public class GeometryToHostConverter : ITypedConverter<IReadOnlyList<Base>, ACG.Geometry>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@
using Speckle.Converters.Common;
using Speckle.Converters.Common.Objects;

namespace Speckle.Converters.ArcGIS3.Geometry.GisFeatureGeometriesToHost;
namespace Speckle.Converters.ArcGIS3.ToHost.Raw;

public class MeshListToHostConverter : ITypedConverter<List<SOG.Mesh>, ACG.Multipatch>
{
private readonly ITypedConverter<SOG.Point, ACG.MapPoint> _pointConverter;
private readonly IConversionContextStack<ArcGISDocument, ACG.Unit> _contextStack;

public MeshListToHostConverter(ITypedConverter<SOG.Point, ACG.MapPoint> pointConverter)
public MeshListToHostConverter(
ITypedConverter<SOG.Point, ACG.MapPoint> pointConverter,
IConversionContextStack<ArcGISDocument, ACG.Unit> contextStack
)
{
_pointConverter = pointConverter;
_contextStack = contextStack;
}

public ACG.Multipatch Convert(List<SOG.Mesh> target)
Expand All @@ -19,7 +24,7 @@ public ACG.Multipatch Convert(List<SOG.Mesh> target)
{
throw new SpeckleConversionException("Feature contains no geometries");
}
ACG.MultipatchBuilderEx multipatchPart = new();
ACG.MultipatchBuilderEx multipatchPart = new(_contextStack.Current.Document.Map.SpatialReference);
foreach (SOG.Mesh part in target)
{
part.TriangulateMesh();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Speckle.Converters.Common;
using Speckle.Converters.Common.Objects;

namespace Speckle.Converters.ArcGIS3.Geometry.GisFeatureGeometriesToHost;
namespace Speckle.Converters.ArcGIS3.ToHost.Raw;

public class MultipatchListToHostConverter : ITypedConverter<List<SGIS.GisMultipatchGeometry>, ACG.Multipatch>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Speckle.Converters.Common;
using Speckle.Converters.Common.Objects;

namespace Speckle.Converters.ArcGIS3.Geometry.GisFeatureGeometriesToHost;
namespace Speckle.Converters.ArcGIS3.ToHost.Raw;

public class PointListToHostConverter : ITypedConverter<List<SOG.Point>, ACG.Multipoint>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Speckle.Core.Kits;
using Speckle.Core.Models;

namespace Speckle.Converters.ArcGIS3.Geometry;
namespace Speckle.Converters.ArcGIS3.ToHost.Raw;

public class PointToHostConverter : ITypedConverter<SOG.Point, ACG.MapPoint>
{
Expand All @@ -22,7 +22,8 @@ public ACG.MapPoint Convert(SOG.Point target)
return new ACG.MapPointBuilderEx(
target.x * scaleFactor,
target.y * scaleFactor,
target.z * scaleFactor
target.z * scaleFactor,
_contextStack.Current.Document.Map.SpatialReference
).ToGeometry();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Speckle.Converters.Common.Objects;
using Speckle.Core.Models;

namespace Speckle.Converters.ArcGIS3.Layers;
namespace Speckle.Converters.ArcGIS3.ToHost.Raw;

public class PointcloudLayerToHostConverter : ITypedConverter<VectorLayer, LasDatasetLayer>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Speckle.Converters.Common.Objects;
using Speckle.Converters.Common;
using Speckle.Converters.Common.Objects;

namespace Speckle.Converters.ArcGIS3.Geometry.GisFeatureGeometriesToHost;
namespace Speckle.Converters.ArcGIS3.ToHost.Raw;

public class Polygon3dListToHostConverter : ITypedConverter<List<SGIS.PolygonGeometry3d>, ACG.Multipatch>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Speckle.Converters.Common.Objects;
using Speckle.Converters.Common;
using Speckle.Converters.Common.Objects;

namespace Speckle.Converters.ArcGIS3.Geometry.GisFeatureGeometriesToHost;
namespace Speckle.Converters.ArcGIS3.ToHost.Raw;

public class PolygonListToHostConverter : ITypedConverter<List<SGIS.PolygonGeometry>, ACG.Polygon>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Speckle.Converters.Common.Objects;
using Speckle.Converters.Common;
using Speckle.Converters.Common.Objects;

namespace Speckle.Converters.ArcGIS3.Geometry.GisFeatureGeometriesToHost;
namespace Speckle.Converters.ArcGIS3.ToHost.Raw;

public class PolylineListToHostConverter : ITypedConverter<List<SOG.Polyline>, ACG.Polyline>
{
Expand Down
Loading
Loading