IModelJson.Reader Class

parser services for "iModelJson" schema

  • 1: create a reader with new ImodelJsonReader
  • 2: parse json fragment to strongly typed geometry: const g = reader.parse (fragment)

Methods

Name Description
constructor(): IModelJson.Reader    
parse(json?: any): undefined | any[] | AnyGeometryQuery Static Deserialize json to GeometryQuery instances.  
parseAkimaCurve3d(data?: any): undefined | AkimaCurve3d Static Parse bcurve content (right side)to an Akima curve object.  
parseArray(data?: any): undefined | any[] Static Parse array of json objects to array of instances.  
parseBcurve(data?: any): undefined | BSplineCurve3d | BSplineCurve3dH Static Parse bcurve content (right side)to BSplineCurve3d or BSplineCurve3dH object.  
parseBox(json?: IModelJson.BoxProps): undefined | Box Static Parse box contents to Box instance  
parseBsurf(data?: any): undefined | BSplineSurface3d | BSplineSurface3dH Static Parse content of bsurf to BSplineSurface3d or BSplineSurface3dH  
parseConeProps(json?: IModelJson.ConeProps): undefined | Cone Static Parse cone contents to Cone instance  
parseCoordinate(data?: any): undefined | CoordinateXYZ Static Parse point content (right side) [1,2,3] to a CoordinateXYZ object.  
parseCurveCollectionMembers(result: CurveCollection, data?: any): undefined | CurveCollection Static parse contents of a curve collection to a CurveCollection instance  
parseCylinderProps(json?: IModelJson.CylinderProps): undefined | Cone Static Parse cylinder content to Cone instance  
parseIndexedMesh(data?: any): undefined | IndexedPolyface Static parse indexed mesh content to an IndexedPolyface instance  
parseInterpolationCurve(data?: any): undefined | InterpolationCurve3d Static Parse bcurve content (right side)to BSplineCurve3d or BSplineCurve3dH object.  
parseLinearSweep(json?: any): undefined | LinearSweep Static Parse linear sweep content to LinearSweep instance.  
parsePointArray(json?: any[]): Point3d[] Static Parse an array object to array of Point3d instances.  
parsePolyfaceAuxData(data: any = undefined, numPerFace: number = 0): undefined | PolyfaceAuxData Static parse polyface aux data content to PolyfaceAuxData instance  
parseRotationalSweep(json?: IModelJson.RotationalSweepProps): undefined | RotationalSweep Static Parse rotational sweep contents to RotationalSweep instance  
parseRuledSweep(json?: IModelJson.RuledSweepProps): undefined | RuledSweep Static Parse RuledSweepProps to RuledSweep instance.  
parseSphere(json?: IModelJson.SphereProps): undefined | Sphere Static Parse SphereProps to Sphere instance.  
parseTorusPipe(json?: IModelJson.TorusPipeProps): undefined | TorusPipe Static Parse TorusPipe props to TorusPipe instance.  

Defined in

Last Updated: 12 June, 2024