import { AnyData } from "./message_pb.js"; import { Message } from "@bufbuild/protobuf"; import { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; //#region src/proto/compas_pb/generated/datastructures_pb.d.ts declare namespace datastructures_pb_d_exports { export { AttributeColumn, AttributeColumnSchema, FaceData, FaceDataSchema, GraphData, GraphDataSchema, MeshData, MeshDataSchema, PolyhedronData, PolyhedronDataSchema, file_compas_pb_generated_datastructures }; } /** * Describes the file compas_pb/generated/datastructures.proto. */ declare const file_compas_pb_generated_datastructures: GenFile; /** * A single vertex attribute stored column-wise across vertices. * If `indices` is empty the column is dense: one value per vertex, in vertex order. * Otherwise `indices[k]` is the vertex index carrying the k-th value (sparse). * Exactly one of the typed arrays / `values` is populated, selected by `kind`. * * @generated from message compas_pb.data.AttributeColumn */ type AttributeColumn = Message<"compas_pb.data.AttributeColumn"> & { /** * @generated from field: string name = 1; */ name: string; /** * @generated from field: repeated uint32 indices = 2; */ indices: number[]; /** * 0 = double, 1 = int, 2 = bool, 3 = generic AnyData * * @generated from field: uint32 kind = 3; */ kind: number; /** * @generated from field: repeated double doubles = 4; */ doubles: number[]; /** * @generated from field: repeated sint64 ints = 5; */ ints: bigint[]; /** * @generated from field: repeated bool bools = 6; */ bools: boolean[]; /** * mixed / non-numeric columns * * @generated from field: repeated compas_pb.data.AnyData values = 7; */ values: AnyData[]; }; /** * Describes the message compas_pb.data.AttributeColumn. * Use `create(AttributeColumnSchema)` to create a new message. */ declare const AttributeColumnSchema: GenMessage; /** * @generated from message compas_pb.data.MeshData */ type MeshData = Message<"compas_pb.data.MeshData"> & { /** * @generated from field: optional string guid = 1; */ guid?: string | undefined; /** * @generated from field: optional string name = 2; */ name?: string | undefined; /** * flat coordinate array: 3 doubles (x, y, z) per vertex * * @generated from field: repeated double vertices = 3; */ vertices: number[]; /** * Faces in CSR form: all face vertex indices concatenated, with face_sizes giving the * vertex count of each face (so face i spans the next face_sizes[i] entries). * * @generated from field: repeated uint32 face_vertices = 4; */ faceVertices: number[]; /** * @generated from field: repeated uint32 face_sizes = 12; */ faceSizes: number[]; /** * @generated from field: map attributes = 5; */ attributes: { [key: string]: AnyData; }; /** * vertex attrs, column-wise (by vertex index) * * @generated from field: repeated compas_pb.data.AttributeColumn vertex_attribute_columns = 6; */ vertexAttributeColumns: AttributeColumn[]; /** * face attrs, column-wise (by face index) * * @generated from field: repeated compas_pb.data.AttributeColumn face_attribute_columns = 7; */ faceAttributeColumns: AttributeColumn[]; /** * edge attrs, column-wise (aligned to edge_keys) * * @generated from field: repeated compas_pb.data.AttributeColumn edge_attribute_columns = 8; */ edgeAttributeColumns: AttributeColumn[]; /** * keys of edges carrying attributes * * @generated from field: repeated compas_pb.data.AnyData edge_keys = 13; */ edgeKeys: AnyData[]; /** * @generated from field: map default_vertex_attributes = 9; */ defaultVertexAttributes: { [key: string]: AnyData; }; /** * @generated from field: map default_face_attributes = 10; */ defaultFaceAttributes: { [key: string]: AnyData; }; /** * @generated from field: map default_edge_attributes = 11; */ defaultEdgeAttributes: { [key: string]: AnyData; }; }; /** * Describes the message compas_pb.data.MeshData. * Use `create(MeshDataSchema)` to create a new message. */ declare const MeshDataSchema: GenMessage; /** * @generated from message compas_pb.data.FaceData */ type FaceData = Message<"compas_pb.data.FaceData"> & { /** * indices into the vertices array * * @generated from field: repeated int32 vertex_indices = 1; */ vertexIndices: number[]; }; /** * Describes the message compas_pb.data.FaceData. * Use `create(FaceDataSchema)` to create a new message. */ declare const FaceDataSchema: GenMessage; /** * @generated from message compas_pb.data.PolyhedronData */ type PolyhedronData = Message<"compas_pb.data.PolyhedronData"> & { /** * @generated from field: optional string guid = 1; */ guid?: string | undefined; /** * @generated from field: optional string name = 2; */ name?: string | undefined; /** * flat x,y,z triplets * * @generated from field: repeated double vertices = 3; */ vertices: number[]; /** * @generated from field: repeated compas_pb.data.FaceData faces = 4; */ faces: FaceData[]; }; /** * Describes the message compas_pb.data.PolyhedronData. * Use `create(PolyhedronDataSchema)` to create a new message. */ declare const PolyhedronDataSchema: GenMessage; /** * @generated from message compas_pb.data.GraphData */ type GraphData = Message<"compas_pb.data.GraphData"> & { /** * @generated from field: optional string guid = 1; */ guid?: string | undefined; /** * @generated from field: optional string name = 2; */ name?: string | undefined; /** * node keys in order (arbitrary hashable) * * @generated from field: repeated compas_pb.data.AnyData node_keys = 3; */ nodeKeys: AnyData[]; /** * column-wise, including x/y/z coordinates * * @generated from field: repeated compas_pb.data.AttributeColumn node_attributes = 4; */ nodeAttributes: AttributeColumn[]; /** * @generated from field: map attributes = 5; */ attributes: { [key: string]: AnyData; }; /** * @generated from field: map default_node_attributes = 6; */ defaultNodeAttributes: { [key: string]: AnyData; }; /** * @generated from field: map default_edge_attributes = 7; */ defaultEdgeAttributes: { [key: string]: AnyData; }; /** * Edges as index pairs into node_keys, with edge attributes stored column-wise. * * @generated from field: repeated uint32 edge_u = 8; */ edgeU: number[]; /** * @generated from field: repeated uint32 edge_v = 9; */ edgeV: number[]; /** * @generated from field: repeated compas_pb.data.AttributeColumn edge_attributes = 10; */ edgeAttributes: AttributeColumn[]; }; /** * Describes the message compas_pb.data.GraphData. * Use `create(GraphDataSchema)` to create a new message. */ declare const GraphDataSchema: GenMessage; //#endregion export { AttributeColumn, AttributeColumnSchema, FaceData, FaceDataSchema, GraphData, GraphDataSchema, MeshData, MeshDataSchema, PolyhedronData, PolyhedronDataSchema, datastructures_pb_d_exports, file_compas_pb_generated_datastructures }; //# sourceMappingURL=datastructures_pb.d.ts.map