-
Notifications
You must be signed in to change notification settings - Fork 10
THREE.Core
$env:name edited this page Nov 14, 2017
·
11 revisions
public class THREE.Core.BufferAttributeProperties
| Type | Name | Summary |
|---|---|---|
Object[] |
Array | |
Int32 |
Count | |
String |
Name | |
Guid |
Uuid |
public class THREE.Core.BufferGeometry
: IGeometryProperties
| Type | Name | Summary |
|---|---|---|
List<BufferAttribute> |
Attributes | |
BufferGeometryBoundingSphere |
BoundingSphere | |
String |
Name | |
String |
Type | |
Guid |
Uuid |
Data for the bounding sphere.
public class THREE.Core.BufferGeometryBoundingSphereProperties
| Type | Name | Summary |
|---|---|---|
Single[] |
Center | Center position of the bounding sphere. |
Single |
Radius | Radius of the bounding sphere. |
Base class for objects which have a Uuid, Name, and Type.
public class THREE.Core.Element
: IElementProperties
| Type | Name | Summary |
|---|---|---|
String |
Name | Name. |
String |
Type | Type of object. |
Guid |
Uuid | Unique Guid. |
Base class for all geometries. \n Analogous to https://threejs.org/docs/index.html#api/core/Geometry \n Design based on need for Three.js Loaders.
public class THREE.Core.Geometry
: Object3D, IElement, IGeometry, IEquatable<Geometry>Properties
| Type | Name | Summary |
|---|---|---|
List<Int32> |
Colors | List of colors for this geometry. |
List<Int32> |
Faces | List of faces for this geometry. |
List<Single> |
Normals | List of normals for this geometry. |
List<List<Single>> |
Uvs | The list of UVs associated with this geometry. |
List<Single> |
Vertices | List of vertices for this geometry. |
Methods
| Type | Name | Summary |
|---|---|---|
Boolean |
Equals(Geometry other) |
Check if one Geometry equals another. TODO: Check if base.Equals(other)? Object3D would need to be IEquatable. |
Boolean |
Equals(Object other) |
Check if one Geometry equals another. TODO: Check if base.Equals(other)? Object3D would need to be IEquatable. |
Int32 |
GetHashCode() | Override of the GetHashCode function. |
Boolean |
ShouldSerializeData() | Check to determine whether the Data object on this geometry should be serialized. If the vertices array is empty, then this will not be serialized. This was added to support parameter based geometry such as SphereGeometry. |
String |
ToJSON(Boolean format) |
Convert this geometry to json format. |
Static Methods
| Type | Name | Summary |
|---|---|---|
List<Int32> |
ProcessFaceArray(List<Int32[]> faces, Boolean vertexColors, Boolean uvs) |
Utility method for processing faces. TODO: Extend for all types of faces and switches. |
List<Single> |
ProcessNormalArray(List<Single[]> normals) |
Flatten a List of float[]. |
List<Single> |
ProcessVertexArray(List<Single[]> vertices) |
Utility method for flattening a List of float[]. |
public class THREE.Core.GeometryCollection
: Collection<Geometry>, IList<Geometry>, ICollection<Geometry>, IEnumerable<Geometry>, IEnumerable, IList, ICollection, IReadOnlyList<Geometry>, IReadOnlyCollection<Geometry>Methods
| Type | Name | Summary |
|---|---|---|
Guid |
AddIfNew(Geometry item) |
Add a geometry to this collection if it does not already exist. |
public interface THREE.Core.IElementpublic interface THREE.Core.IGeometryBase class for all objects. Analogous to https://threejs.org/docs/index.html#api/core/Object3D
public class THREE.Core.Object3D
: Element, IElementProperties
| Type | Name | Summary |
|---|---|---|
Boolean |
CastShadow | Flag for determining if object casts shadow. |
List<IElement> |
Children | List with object's children. |
Matrix4 |
Matrix | Object matrix. |
IEnumerable<Object> |
MatrixArray | |
Object3D |
Parent | |
Vector3 |
Position | The object's local position. |
Quaternion |
Quaternion | |
Boolean |
ReceiveShadow | Flag for determining if object receives shadow. |
Euler |
Rotation | |
Vector3 |
Scale | |
Object3DSerializationAdaptor |
SerializationAdaptor | |
Dictionary<String, Dictionary<String, Object>> |
UserData | Object user data. |
Boolean |
Visible | Object visibility. |
Methods
| Type | Name | Summary |
|---|---|---|
void |
Add(IElement obj) |
Adds an object as a child of this object. |
void |
AddRange(List<IElement> objs) |
Adds a list of objects as children of this object. |
void |
ProcessChildren(Group group = null) |
|
Boolean |
ShouldSerializeChildren() | |
String |
ToJSON(Boolean format) |
Convert the object to JSON format. |
void |
UpdateMatrix() |
BufferAttributeBufferGeometryBufferGeometryBoundingSphereElementGeometryGeometryCollectionIElementIGeometryObject3D
AmbientLightDirectionalLightDirectionalLightShadowHemisphereLightILightLightLightShadowPointLightRectAreaLightSpotLightSpotLightShadow