Skip to content

Commit b55d8bd

Browse files
committed
Correct Naming and Expose Addition C++ methods in typescript
1 parent fd2b1a7 commit b55d8bd

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/web-ifc-api.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,23 +104,24 @@ export interface PlacedGeometry {
104104
export interface FlatMesh {
105105
geometries: Vector<PlacedGeometry>;
106106
expressID: number;
107+
delete(): void;
107108
}
108109

109-
export interface point {
110+
export interface Point {
110111
x: number;
111112
y: number;
112113
}
113114

114-
export interface curve {
115-
curves: Array<point>;
115+
export interface Curve {
116+
curves: Array<Point>;
116117
}
117118

118119
export interface IfcCrossSection {
119-
curves: Array<curve>;
120+
curves: Array<Curve>;
120121
}
121122

122123
export interface IfcAlignmentSegment {
123-
curves: Array<curve>;
124+
curves: Array<Curve>;
124125
}
125126

126127
export interface IfcAlignment {
@@ -134,9 +135,10 @@ export interface IfcGeometry {
134135
GetVertexDataSize(): number;
135136
GetIndexData(): number;
136137
GetIndexDataSize(): number;
138+
delete(): void;
137139
}
138140

139-
export interface ifcType {
141+
export interface IfcType {
140142
typeID: number;
141143
typeName: string;
142144
}
@@ -422,8 +424,8 @@ export class IfcAPI {
422424
* @param modelID Model handle retrieved by OpenModel
423425
* @returns Array of objects containing typeID and typeName
424426
*/
425-
GetAllTypesOfModel(modelID: number): ifcType[] {
426-
let typesNames: ifcType[] = [];
427+
GetAllTypesOfModel(modelID: number): IfcType[] {
428+
let typesNames: IfcType[] = [];
427429
const elements = Object.keys(FromRawLineData[this.modelSchemaList[modelID]]).map((e) => parseInt(e));
428430
for (let i = 0; i < elements.length; i++) {
429431
const lines = this.GetLineIDsWithType(modelID, elements[i]);

0 commit comments

Comments
 (0)