NChartModel Class Reference

Inherits from NSObject
Declared in NChartModel.h

Overview

The NChartModel provides the container for the 3D model that can be loaded from file and then be displayed as a marker (see NChartMarker for details). PLY (http://en.wikipedia.org/wiki/PLY_(file_format)) with triangles and geometry of 3DS (http://en.wikipedia.org/wiki/.3ds) are supported.

+ modelWithData:

Create model with data.

+ (NChartModel *)modelWithData:(NSData *)data

Parameters

data
  • data containing the model.

Return Value

a new instance of the model.

Declared In

NChartModel.h

+ modelWithContentsOfFile:

Create model with contents of file.

+ (NChartModel *)modelWithContentsOfFile:(NSString *)filePath

Parameters

filePath
  • path to file containing the model.

Return Value

a new instance of the model.

Declared In

NChartModel.h

– initWithData:

Init model with data.

- (id)initWithData:(NSData *)data

Parameters

data
  • data containing the model.

Return Value

the initialized instance of a model.

Declared In

NChartModel.h

– initWithContentsOfFile:

Init model with contents of file.

- (id)initWithContentsOfFile:(NSString *)filePath

Parameters

filePath
  • path to file containing the model.

Return Value

the initialized instance of a model.

Declared In

NChartModel.h

  vertexCount

Number of vertices in the model.

@property (nonatomic, readonly) NSInteger vertexCount

Declared In

NChartModel.h

  trianglesCount

Number of triangles in the model.

@property (nonatomic, readonly) NSInteger trianglesCount

Declared In

NChartModel.h