Update after discussion with MSJ

This commit is contained in:
Sigurd Pettersen 2024-02-13 13:44:25 +01:00
parent 0967e576e3
commit 242cad41b9

View File

@ -40,6 +40,7 @@ message CellIndexFilter
message PropertyFilter message PropertyFilter
{ {
// Timestep ??
string propertyFilename = 1; string propertyFilename = 1;
float valueMin = 2; float valueMin = 2;
float valueMax = 3; float valueMax = 3;
@ -52,7 +53,6 @@ message GridDimensions
uint32 kNum = 3; uint32 kNum = 3;
} }
message GetGridSurfaceRequest message GetGridSurfaceRequest
{ {
string gridFilename = 1; string gridFilename = 1;
@ -66,37 +66,29 @@ message GetGridSurfaceResponse
repeated float vertexArray = 1; repeated float vertexArray = 1;
repeated fixed32 quadIndicesArr = 2; // 4*NumQuads long repeated fixed32 quadIndicesArr = 2; // 4*NumQuads long
repeated fixed32 sourceCellIndicesArr = 3; // The originating cell index per quad, longnumQuads long repeated fixed32 sourceCellIndicesArr = 3; // The originating cell index per quad, longnumQuads long
repeated fixed32 propertyIndicesArr = 4; // SHOULD WE HAVE THIS?? Index of property result per quad, numQuads long
GridDimensions gridDimensions = 5; GridDimensions gridDimensions = 5;
Vec3d originUtm = 6; Vec3d originUtm = 6;
} }
message CutAlongPolylineRequest message CutAlongPolylineRequest
{ {
string gridFilename = 1; string gridFilename = 1;
IJKIndexFilter ijkIndexFilter = 2; // Should these be present here?? repeated double fencePolylineUtmXY = 2;
CellIndexFilter cellIndexFilter = 3;
PropertyFilter propertyFilter = 4;
repeated double fencePolylineUtmXY = 4;
} }
message FenceMeshSection message FenceMeshSection
{ {
// U-axis defined by vector from start to end // U-axis defined by vector from start to end, Z is global Z
// V-axis is global Z repeated float vertexArrayUZ = 1;
repeated float vertexArrayUV = 1; // Plane local UV vertex coordinates
repeated fixed32 polyIndicesArr = 2; repeated fixed32 polyIndicesArr = 2;
repeated fixed32 verticesPerPolygonArr = 3; // Number of vertices per polygon, numPolygons long repeated fixed32 verticesPerPolygonArr = 3; // Number of vertices per polygon, numPolygons long
repeated fixed32 sourceCellIndicesArr = 4; // The originating cell index per polygon, numPolygons long repeated fixed32 sourceCellIndicesArr = 4; // The originating cell index per polygon, numPolygons long
repeated fixed32 propertyIndicesArr = 5; // SHOULD WE HAVE THIS?? Index of property result per polygon, numPolygons long
Vec2d startUtmXY = 6; Vec2d startUtmXY = 6;
Vec2d endUtmXY = 7; Vec2d endUtmXY = 7;
} }
message CutAlongPolylineResponse message CutAlongPolylineResponse
{ {
double originZ = 1; repeated FenceMeshSection feceMeshSections = 1;
GridDimensions gridDimensions = 2; GridDimensions gridDimensions = 2;
repeated FenceMeshSection feceMeshSections = 3;
} }