-7

I like to create a new Slb.Ocean.Petrel.DomainObject.Shapes.Surface from Slb.Ocean.Petrel.DomainObject.Shapes.Surface by performing calculations on every points on the surface to generate a new surface, any idea how it can be done?

αƞjiβ
  • 3,056
  • 14
  • 58
  • 95
  • This is highly specialized software from Slumberger and you're probably going to have to go to them directly for support, good luck, I've worked with them in the past. – Ron Beyer Apr 29 '15 at 20:47

1 Answers1

1

I assume you're referring to RegularHeightFieldSurface instead of Surface, which is abstract. You can do something like the following:

var outSurface = parentCollection.CreateRegularHeightFieldSurface("output surface", inputSurface.SpatialLattice);

You can then iterate through all Samples of the inputSurface, compute your output samples, and set outputSurface.Samples to the computed samples.

As an alternative, instead of creating a new surface, you can just create a new SurfaceProperty of the input surface.

RJFalconer
  • 10,890
  • 5
  • 51
  • 66
zlu
  • 226
  • 1
  • 3