Topography by points creates a wrong boundary

I have to convert a DGM file into a Revit Family. When I transform the DGM from Site/Mass it creates wrong geometry. Now I can create a correct geometry but I can’t use it because it is mesh. How can I convert to Solid?

Maybe try Mesh.ToPolySurface from the Springs package.

1 Like

I know it. I tried to use then method from @Vikram_Subbaiah but I can’t create a polysurface from created surfaces.

 ```
//Topography to PolySurface
tm1=topo.Mesh;
vp1=tm1.VertexPositions;
iG=tm1.FaceIndices;
lst1=List.Transpose({iG.A,iG.B,iG.C});
lst2=List.GetItemAtIndex(vp1,lst1);
srf1=Surface.ByPerimeterPoints(lst2);
srf2=PolySurface.ByJoinedSurfaces(srf1);

//Solid Topography
pln1=Plane.ByOriginNormal(srf2.BoundingBox.MinPoint,Vector.ZAxis());
per1=srf2.PerimeterCurves().Project(pln1,Vector.ByCoordinates(0,0,-1));
per2=PolyCurve.ByJoinedCurves(Flatten(per1)).Translate(Vector.ZAxis(),-1000);
sld1=per2.ExtrudeAsSolid((srf2.BoundingBox.MaxPoint.Z-srf2.BoundingBox.MinPoint.Z)+2000);
sld2=sld1.Trim(srf2,srf2.BoundingBox.MaxPoint);
sld3=sld2.Difference(bld.Geometry());
```

I get that error:
Warnung:Solid.ByJoinedSurfaces fehlgeschlagen.
Surfaces could not be joined into a closed Solid, even with refinement!