engine package

Classes

ClassDescription
AnimatingRibbonAnimatingRibbon is used to display animated ribbons in the scene. The ribbons have constant minimum width, so when the ribbons can be seen even the camera is far away.
AnimatingStripeAnimatingStripe is used to display animated stripes in the scene.
BarChartA 3D bar chart.
BBoxSizeThis tool can cut the scene in any directions and reveal the internal part of the scene.
BillboardPlacer
BitmapFontBitmapFont used in Text3D This bitmap font is generated with the following website. https://evanw.github.io/font-texture-generator/
CameraThe Camera class provides interfaces to control the 3D camera.
CameraManipulatorThe camera manipulator associates the input, e.g, mouse to the view camera. This tool is added to viewer implicitly when mouse is enabled.
CameraNavigatorGenerate camera animation according to the input key points.
GLTFLoaderGLTF 2.0 file loader.
HeatMapGenerate a heatmap texture from a point distribution and color map.
HeightMapGenerate a height map from a point distribution and color map.
Keyboard
MagnifyGlassThis tool allows users to zoom into specific region defined by a rectanglar on the screen.
MapPawnGenerator地图
MarkGraphDrawing marks in 3d scene
MeasureThe base class of all Modelo.View.Tool.MeasureXXX.
MeasureAngleA used to measure the angles on the model surface.
MeasureAreaA tool use to measure the area on model surface. Users can reset the current measurement by clicking the mouse right button. Users can press "Esc/Enter" to stop the current measurement.
MeasureLineA tool to measure the distance between two points. Users can reset the current measurement by clicking the mouse right button. Users can press "Esc/Enter" to stop the current measurement.
MeasureLineFanA tool the measure distance between a fixed point to other points on the model surface. Users can reset the current measurement by clicking the mouse right button. Users can press "Esc/Enter" to stop the current measurement.
MeasureLinesA tool to measure the total length of several un-connected lines. Users can reset the current measurement by clicking the mouse right button. Users can press "Esc/Enter" to stop the current measurement.
MeasureLineStripA tool to measure the total length of several un-connected lines. Users can reset the current measurement by clicking the mouse right button. Users can press "Esc/Enter" to stop the current measurement.
MetaBallRender a texture with meta-balls for a bunch of points over the XY plane.
MiniMapNavigation小地图漫游工具
Mouse
MultiLayerColorCreate a multi layered volume rendering. It takes in a 2D texture representing the multiple layers in xy plane. The volume is extruded by interpolating the values in xy planes.
MultiLayerVolumeCreate a multi layered volume rendering. It takes in a 2D texture representing the multiple layers in xy plane. The volume is extruded by interpolating the values in xy planes.
PathFollowingAnimatorPathFollowingAnimator is a tool to generate animations that make all attached pawn objects moving along the given path.
PawnPawn is a small object that can be inserted into scene dynamically.
PawnBillboardA billboard pawn that always faces camera.
Scene3DScene3D describes the contents in the scene and provides a number of ways to change them.A Scene3D object is created internally when Viewer3D is initialized. It can be obtained by call Viewer3DBase.getScene().
Section
SelectElementsSelect one or more elements by mouse clicking.
SelectModel
Selector
Text3DText3D is a 3d text that can be inserted into scene dynamically.
Text3DBillboardText3DBillboard is billboard text that can be inserted into scene dynamically.
Touch
TrailRender paths defined by a connected line segments. The path rendering has animation which trace the path from the beginning to the end.
TransactionManager
TransformGizmoA Gizmo for transform models
ViewerThe viewer is the abstract base class of all viewers. It provides some basic functionalities and common interfaces.
Viewer360A viewer that displays a 3D panorama.
Viewer360BaseA viewer that displays a 3D panorama.
Viewer3DA Viewer3D object takes in an HTML5 DOM and draw 3D models over this DOM. It captures the input methods, e.g., mouse, keyboard whenever they are enabled, and other browser events, e.g., resize and take correspoinding actions.
Viewer3DBaseA base Viewer3D object takes in an HTML5 DOM and draw 3D models over this DOM. It captures the input methods, e.g., mouse, keyboard whenever they are enabled, and other browser events, e.g., resize and take correspoinding actions.
Viewer3DCompareA viewer that shows two 3D model side by side and highlights the differences.
Viewer3DDarkA special viewer that will override the model's appearance with a programmed dark style.
ViewerManager增加了高质量渲染的viewer,并提供了一系列场景配置api
VisualizeThe base class of Modelo.Scene3D.Visualize.XXX.
VolumeCreate a volume rendering. It takes in a 2D texture representing the density in XY plane. The volume is construct by extruding the XY plane in Z axis.

Enumerations

EnumerationDescription
ArrowStylearrow style for rectangle mark
AssetStatus
AssetType
BillboardPlacerMode
BIMTreeNodeTypeValid types of BIM tree node
ComStatus
DrawModedraw mode for mark
ElementType
IssuePriority
IssueStatus
ModelShaderSetting
ModelStatus
ModelType
SelectionType
SelectTypeselect mode for mark
SkyBoxModeSkyBoxMode for general viewer
StateThe runtime state of canvas.
TaskCommentType
TaskPriority
TRANSFORM_TYPE
ViewAngleViewAngle Enum
WechatMessageType

Functions

FunctionDescription
activate(viewer, commentId)Make a model comment in current viewer to be the current comment. It will change the current view angle to the one when comment was created.this function is only available after a 3D viewer loaded.
create(viewer, modelId, extData)Create a model comment with model id and extData.this function is only available after a 3D viewer loaded.
init(newConfig)Initialize and configure Modelo API.
isSupportWebGL(doc)Check if the current platform supports WebGL 1.0.
isSupportWebGL2(doc)Check if the current platform supports WebGL 2.0.

Interfaces

InterfaceDescription
BillboardOptions
BIMCategoryType information of a BIM category node
BIMElementType information of a BIM Element node
BIMFamilyType information of a BIM family node
BIMLevelType information of a BIM level node
BIMModelType information of a BIM model(doc) node
BIMNodeTypeType information of a BIM node
BIMPropertyType information of a BIM property
BIMTreeType information of a BIM tree
BIMTypeType information of a BIM type node
CameraDataBackgroundMode for High Quality viewer
MapOptionsmap config
MiniMapOptions小地图配置
UrlTemplateImageryProviderOptionsimagery config
Viewer3DConfigThe initialization configuration for Viewer3D.

Namespaces

NamespaceDescription
AddCombinedModel
AddModelComment
AddModelRenderSetting
AddModelSelectionSet
AddSliceModel
Asset
BatchAddProperty
BatchDeleteProperties
BatchGetProperties
BatchUpdateProperty
BIM
Comment
DeleteAsset
DeleteModel
DeleteModelComment
DeleteModelRenderSetting
DeleteModelSelectionSet
Generate3Dpdf
Get3Dpdfurl
GetAsset
GetAssetFolder
GetElementProperties
GetModel
GetModelComment
GetModelComments
GetModelFiles
GetModelFolder
GetModelRenderSetting
GetModelSelectionSets
InitElementProperty
Model
ModelInfo
UpdateAsset
UpdateElementProperty
UpdateModel
UpdateModelComment
UpdateModelRenderSetting
UpdateModelSelectionSet
UploadAsset
UploadAssetSuccess
UploadModel
UploadModelSuccess
ViewThis namespace contains all the UI related functionalities, including the viewers, inputs and tools.

Variables

VariableDescription
_default
ModeloApplication

Type Aliases

Type AliasDescription
AssetDataAsset data type
BIMCategoriesType information of BIM categories object
BIMElementsType information of BIM elements object
BIMFamiliesType information of BIM families object
BIMLevelsType information of BIM levels object
BIMModelsType information of BIM models(docs) object
BIMTypesType information of BIM types object
Id
JsonObject
Maybe
ModelDataModel data type
ModeloAPIConfigThe initialization information of API. It requires "endpoint", the URL of the backend server, e.g., https://build-portal.modeloapp.com for Modelo public cloud service, and "appToken", the secret token to access the backend data. The token can be found on build's admin page. Check out the programming guide for more details about the app token.
ProgressFn
SelectionSetType information of a selection set