mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Just the functional assimp lib rather than the entire assimp repository unnecessarily.
This commit is contained in:
parent
0f7641a282
commit
e9ea38eda3
1747 changed files with 9012 additions and 925008 deletions
|
|
@ -2,8 +2,7 @@
|
|||
Open Asset Import Library (assimp)
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Copyright (c) 2006-2018, assimp team
|
||||
|
||||
Copyright (c) 2006-2017, assimp team
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use of this software in source and binary forms,
|
||||
|
|
@ -39,13 +38,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
/** @file Defines the helper data structures for importing PLY files */
|
||||
#pragma once
|
||||
#ifndef AI_PLYFILEHELPER_H_INC
|
||||
#define AI_PLYFILEHELPER_H_INC
|
||||
|
||||
#include <assimp/ParsingUtils.h>
|
||||
#include <assimp/IOStreamBuffer.h>
|
||||
|
||||
#include "ParsingUtils.h"
|
||||
#include "IOStreamBuffer.h"
|
||||
#include <vector>
|
||||
|
||||
namespace Assimp
|
||||
|
|
@ -57,7 +57,8 @@ class PLYImporter;
|
|||
// http://local.wasp.uwa.edu.au/~pbourke/dataformats/ply/
|
||||
// http://w3.impa.br/~lvelho/outgoing/sossai/old/ViHAP_D4.4.2_PLY_format_v1.1.pdf
|
||||
// http://www.okino.com/conv/exp_ply.htm
|
||||
namespace PLY {
|
||||
namespace PLY
|
||||
{
|
||||
|
||||
// ---------------------------------------------------------------------------------
|
||||
/*
|
||||
|
|
@ -76,7 +77,8 @@ int8
|
|||
int16
|
||||
uint8 ... forms are also used
|
||||
*/
|
||||
enum EDataType {
|
||||
enum EDataType
|
||||
{
|
||||
EDT_Char = 0x0u,
|
||||
EDT_UChar,
|
||||
EDT_Short,
|
||||
|
|
@ -95,7 +97,8 @@ enum EDataType {
|
|||
*
|
||||
* Semantics define the usage of a property, e.g. x coordinate
|
||||
*/
|
||||
enum ESemantic {
|
||||
enum ESemantic
|
||||
{
|
||||
//! vertex position x coordinate
|
||||
EST_XCoord = 0x0u,
|
||||
//! vertex position x coordinate
|
||||
|
|
@ -178,14 +181,15 @@ enum ESemantic {
|
|||
*
|
||||
* Semantics define the usage of an element, e.g. vertex or material
|
||||
*/
|
||||
enum EElementSemantic {
|
||||
enum EElementSemantic
|
||||
{
|
||||
//! The element is a vertex
|
||||
EEST_Vertex = 0x0u,
|
||||
|
||||
//! The element is a face description (index table)
|
||||
EEST_Face,
|
||||
|
||||
//! The element is a triangle-strip description (index table)
|
||||
//! The element is a tristrip description (index table)
|
||||
EEST_TriStrip,
|
||||
|
||||
//! The element is an edge description (ignored)
|
||||
|
|
@ -206,16 +210,17 @@ enum EElementSemantic {
|
|||
*
|
||||
* This can e.g. be a part of the vertex declaration
|
||||
*/
|
||||
class Property {
|
||||
class Property
|
||||
{
|
||||
public:
|
||||
|
||||
//! Default constructor
|
||||
Property() AI_NO_EXCEPT
|
||||
: eType (EDT_Int)
|
||||
, Semantic()
|
||||
, bIsList(false)
|
||||
, eFirstType(EDT_UChar) {
|
||||
// empty
|
||||
}
|
||||
Property()
|
||||
: eType (EDT_Int),
|
||||
Semantic(),
|
||||
bIsList(false),
|
||||
eFirstType(EDT_UChar)
|
||||
{}
|
||||
|
||||
//! Data type of the property
|
||||
EDataType eType;
|
||||
|
|
@ -254,14 +259,15 @@ public:
|
|||
* This can e.g. be the vertex declaration. Elements contain a
|
||||
* well-defined number of properties.
|
||||
*/
|
||||
class Element {
|
||||
class Element
|
||||
{
|
||||
public:
|
||||
|
||||
//! Default constructor
|
||||
Element() AI_NO_EXCEPT
|
||||
: eSemantic (EEST_INVALID)
|
||||
, NumOccur(0) {
|
||||
// empty
|
||||
}
|
||||
Element()
|
||||
: eSemantic (EEST_INVALID)
|
||||
, NumOccur(0)
|
||||
{}
|
||||
|
||||
//! List of properties assigned to the element
|
||||
//! std::vector to support operator[]
|
||||
|
|
@ -297,9 +303,8 @@ class PropertyInstance
|
|||
public:
|
||||
|
||||
//! Default constructor
|
||||
PropertyInstance() AI_NO_EXCEPT {
|
||||
// empty
|
||||
}
|
||||
PropertyInstance ()
|
||||
{}
|
||||
|
||||
union ValueUnion
|
||||
{
|
||||
|
|
@ -357,13 +362,13 @@ public:
|
|||
// ---------------------------------------------------------------------------------
|
||||
/** \brief Class for an element instance in a PLY file
|
||||
*/
|
||||
class ElementInstance {
|
||||
class ElementInstance
|
||||
{
|
||||
public:
|
||||
|
||||
//! Default constructor
|
||||
ElementInstance() AI_NO_EXCEPT
|
||||
: alProperties() {
|
||||
// empty
|
||||
}
|
||||
ElementInstance ()
|
||||
{}
|
||||
|
||||
//! List of all parsed properties
|
||||
std::vector< PropertyInstance > alProperties;
|
||||
|
|
@ -387,10 +392,8 @@ class ElementInstanceList
|
|||
public:
|
||||
|
||||
//! Default constructor
|
||||
ElementInstanceList() AI_NO_EXCEPT
|
||||
: alInstances() {
|
||||
// empty
|
||||
}
|
||||
ElementInstanceList ()
|
||||
{}
|
||||
|
||||
//! List of all element instances
|
||||
std::vector< ElementInstance > alInstances;
|
||||
|
|
@ -414,11 +417,8 @@ class DOM
|
|||
public:
|
||||
|
||||
//! Default constructor
|
||||
DOM() AI_NO_EXCEPT
|
||||
: alElements()
|
||||
, alElementData() {
|
||||
|
||||
}
|
||||
DOM()
|
||||
{}
|
||||
|
||||
|
||||
//! Contains all elements of the file format
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue