Copyright © 2021 by K4.org
  (v.0.48.124)

An imported OBJ object with MTL materials.

Index

Rules

__mod3

__mod3: String

Internal Use Only.

Flags : Cached, External (Note this is uncached)

Expression : R.THREE.makeOBJ(this.renderName, this.spec)

altMTLDefinition

altMTLDefinition: String

This string is used as alternate MTL library for the OBJ file instead of one inside ZIP file. Can be used for fast editing of the materials while developing. Default value is empty string and MTL library will be loaded from ZIP file.

Flags : Cached, Parameter (Note this is uncached)

Expression : ""

bbox

bbox: Any

Override of standard rule to access OBJ bounding box.

Flags : Cached (Note this is uncached)

Expression : R.THREE.computeObjectBB(this.scaledObj3, this.transform.get3())

file

file: Any

A file reference to a ZIP file containing exactly one OBJ and MTL files, or a file reference directly to an OBJ file without material information. May be a Resource, URL, or server file path.

Flags : Cached, Required, Parameter (Note this is uncached)

Expression : ``

fileUrl

fileUrl: Any

Internal Use Only.

Flags : Cached, Parameter (Note this is uncached)

Expression : R.getUrl(this.file)

hardEdgeAngle

hardEdgeAngle: Number

Angle in degrees between facets above which will show an edge.

Flags : Cached, Parameter (Note this is uncached)

Expression : 15

invertTransparency

invertTransparency: Boolean

Sets the invertTrProperty material option of the three.js MTLLoader

Flags : Cached, Parameter (Note this is uncached)

Expression : false

meshData

meshData: Any

Untransformed MeshData object for this OBJ.

Flags : Cached (Note this is uncached)

Expression : R.THREE.getMeshData(this.__mod3)

mtlName

mtlName: String

A name of MTL file in ZIP that will be used as material library. Default is empty string, the first founded MTL file in ZIP will be used in this case.

Flags : Cached, Parameter (Note this is uncached)

Expression : ""

obj3

obj3: Any

Internal Use Only.

Flags : Cached, Async (Note this is uncached)

Expression : R.THREE.getOBJ(this.fileUrl)

preloadClientBB

preloadClientBB: Boolean

For cases where loading the entire object onto the server just to compute its bounding box is unnecessary, this should be set to false. Set this only when a serious performance issue requires it, or when the object is mostly image data (such as for environment maps).

Flags : Cached, Parameter (Note this is uncached)

Expression : true

rawbbox

rawbbox: Any

Access to the raw, untransformed OBJ bounding box.

Flags : Cached (Note this is uncached)

Expression : R.THREE.computeObjectBB(this.scaledObj3)

scale

scale: Number

The scale by which the OBJ geometry should be multiplied by. Set this for a uniform scaling. Set the individual xScale, yScale, and zScale for non-uniform scaling.

Flags : Cached, Parameter (Note this is uncached)

Expression : 1.0

scaledObj3

scaledObj3: Any

Internal Use Only.

Flags : Cached (Note this is uncached)

Expression : R.THREE.getScaledOBJ(this.obj3, this.fileUrl, this.xScale, this.yScale, this.zScale)

spec

spec: Any

Internal Use Only.

Flags : Cached (Note this is uncached)

Expression : {file: this.fileUrl, bbox: this.preloadClientBB ? this.rawbbox.get3() : null, hardEdgeAngle: this.hardEdgeAngle, xScale: this.xScale, yScale: this.yScale, zScale: this.zScale, mtlName: this.mtlName, altMTLDefinition: this.altMTLDefinition, invertTransparency: this.invertTransparency, usePhysicalMaterial: this.usePhysicalMaterial}

usePhysicalMaterial

usePhysicalMaterial: Boolean

If false (the default), will use MeshPhongMaterial. If true, then MeshPhysicalMaterial will be used.

Flags : Cached, Parameter (Note this is uncached)

Expression : false

xScale

xScale: Number

The scale by which the x-direction should be multiplied by.

Flags : Cached, Parameter (Note this is uncached)

Expression : this.scale

yScale

yScale: Number

The scale by which the y-direction should be multiplied by.

Flags : Cached, Parameter (Note this is uncached)

Expression : this.scale

zScale

zScale: Number

The scale by which the z-direction should be multiplied by.

Flags : Cached, Parameter (Note this is uncached)

Expression : this.scale