#include <llvolume.h>
Public Types | |
enum | { SINGLE_MASK = 0x0001, CAP_MASK = 0x0002, END_MASK = 0x0004, SIDE_MASK = 0x0008, INNER_MASK = 0x0010, OUTER_MASK = 0x0020, HOLLOW_MASK = 0x0040, OPEN_MASK = 0x0080, FLAT_MASK = 0x0100, TOP_MASK = 0x0200, BOTTOM_MASK = 0x0400 } |
Public Member Functions | |
LLVolumeFace () | |
BOOL | create (LLVolume *volume, BOOL partial_build=FALSE) |
void | createBinormals () |
Public Attributes | |
S32 | mID |
U32 | mTypeMask |
LLVector3 | mCenter |
BOOL | mHasBinormals |
S32 | mBeginS |
S32 | mBeginT |
S32 | mNumS |
S32 | mNumT |
LLVector3 | mExtents [2] |
std::vector< VertexData > | mVertices |
std::vector< U16 > | mIndices |
std::vector< S32 > | mEdge |
Private Member Functions | |
BOOL | createUnCutCubeCap (LLVolume *volume, BOOL partial_build=FALSE) |
BOOL | createCap (LLVolume *volume, BOOL partial_build=FALSE) |
BOOL | createSide (LLVolume *volume, BOOL partial_build=FALSE) |
Classes | |
class | VertexData |
Definition at line 761 of file llvolume.h.
anonymous enum |
SINGLE_MASK | |
CAP_MASK | |
END_MASK | |
SIDE_MASK | |
INNER_MASK | |
OUTER_MASK | |
HOLLOW_MASK | |
OPEN_MASK | |
FLAT_MASK | |
TOP_MASK | |
BOTTOM_MASK |
Definition at line 787 of file llvolume.h.
LLVolumeFace::LLVolumeFace | ( | ) | [inline] |
Definition at line 764 of file llvolume.h.
Definition at line 4184 of file llvolume.cpp.
References CAP_MASK, createCap(), createSide(), END_MASK, FALSE, llendl, llerrs, mTypeMask, and SIDE_MASK.
void LLVolumeFace::createBinormals | ( | ) |
Definition at line 4721 of file llvolume.cpp.
References calc_binormal_from_triangle(), i, j, mHasBinormals, mIndices, LLVolumeFace::VertexData::mPosition, LLVolumeFace::VertexData::mTexCoord, LLMemType::MTYPE_VOLUME, mVertices, and TRUE.
Definition at line 4214 of file llvolume.cpp.
References calc_binormal_from_triangle(), LLVolume::getMesh(), LLVolume::getPath(), LLVolume::getProfile(), LLProfile::getTotal(), i, LerpPlanarVertex(), mBeginS, LLVolumeFace::VertexData::mBinormal, mCenter, mExtents, mHasBinormals, mIndices, LLVolumeFace::VertexData::mNormal, LLPath::mPath, LLVolumeFace::VertexData::mPosition, LLProfile::mProfile, LLVolumeFace::VertexData::mTexCoord, LLMemType::MTYPE_VOLUME, mTypeMask, LLVector2::mV, mVertices, LLVector3::normVec(), S32, TOP_MASK, TRUE, and update_min_max().
Referenced by createCap().
Definition at line 4322 of file llvolume.cpp.
References BOTTOM_MASK, calc_binormal_from_triangle(), LLVector3::clearVec(), createUnCutCubeCap(), FALSE, LLPathParams::getBegin(), LLPathParams::getCurveType(), LLProfileParams::getCurveType(), LLPathParams::getEnd(), LLVolume::getMesh(), LLVolume::getParams(), LLVolume::getPath(), LLVolumeParams::getPathParams(), LLVolume::getProfile(), LLVolumeParams::getProfileParams(), LLProfile::getTotal(), HOLLOW_MASK, i, LL_PCODE_PATH_LINE, LL_PCODE_PROFILE_SQUARE, llassert, LLVector3::magVecSquared(), mBeginS, LLVolumeFace::VertexData::mBinormal, mCenter, mExtents, mHasBinormals, mIndices, LLVolumeFace::VertexData::mNormal, LLPath::mPath, LLVolumeFace::VertexData::mPosition, LLProfile::mProfile, LLVolumeFace::VertexData::mTexCoord, LLMemType::MTYPE_VOLUME, mTypeMask, LLVector3::mV, mVertices, LLVector3::normVec(), OPEN_MASK, S32, TRUE, update_min_max(), vector_append(), and VZ.
Referenced by create().
Definition at line 4766 of file llvolume.cpp.
References LLVector3::clearVec(), END_MASK, FALSE, FLAT_MASK, LLVolume::getMesh(), LLVolume::getParams(), LLVolume::getPath(), LLVolume::getPathType(), LLVolume::getProfile(), LLVolume::getProfileType(), LLVolumeParams::getSculptType(), LLProfile::getTotal(), i, INNER_MASK, LLPath::isOpen(), LLProfile::isOpen(), j, LL_PCODE_PATH_CIRCLE, LL_PCODE_PROFILE_CIRCLE_HALF, LL_PCODE_PROFILE_MASK, LL_SCULPT_TYPE_CYLINDER, LL_SCULPT_TYPE_NONE, LL_SCULPT_TYPE_SPHERE, LL_SCULPT_TYPE_TORUS, llfloor(), mBeginS, mBeginT, mCenter, mEdge, mExtents, mIndices, mNumS, mNumT, LLPath::mPath, LLVolumeFace::VertexData::mPosition, LLProfile::mProfile, LLMemType::MTYPE_VOLUME, mTypeMask, mVertices, OPEN_MASK, S32, TRUE, and update_min_max().
Referenced by create().
Definition at line 804 of file llvolume.h.
Referenced by create(), createCap(), createSide(), createUnCutCubeCap(), LLVolume::createVolumeFaces(), and LLVolume::generateSilhouetteVertices().
Definition at line 805 of file llvolume.h.
Referenced by createCap(), createSide(), createUnCutCubeCap(), and LLFace::getGeometryVolume().
Definition at line 806 of file llvolume.h.
Referenced by createBinormals(), createCap(), and createUnCutCubeCap().
Definition at line 809 of file llvolume.h.
Referenced by createCap(), createSide(), createUnCutCubeCap(), and LLVolume::createVolumeFaces().
Definition at line 810 of file llvolume.h.
Referenced by createSide(), and LLVolume::createVolumeFaces().
Definition at line 811 of file llvolume.h.
Referenced by createSide(), and LLVolume::createVolumeFaces().
Definition at line 812 of file llvolume.h.
Referenced by createSide(), and LLVolume::createVolumeFaces().
Definition at line 814 of file llvolume.h.
Referenced by createCap(), createSide(), createUnCutCubeCap(), and LLFace::genVolumeBBoxes().
std::vector<VertexData> LLVolumeFace::mVertices |
Definition at line 816 of file llvolume.h.
Referenced by LLViewerCamera::areVertsVisible(), createBinormals(), createCap(), createSide(), createUnCutCubeCap(), LLVolume::generateSilhouetteVertices(), LLVOTextBubble::getGeometry(), LLFace::getGeometryVolume(), LLVolume::lineSegmentIntersect(), LLImagePreviewSculpted::render(), LLVOVolume::updateFaceSize(), and LLVOTextBubble::updateFaceSize().
std::vector<U16> LLVolumeFace::mIndices |
Definition at line 817 of file llvolume.h.
Referenced by createBinormals(), createCap(), createSide(), createUnCutCubeCap(), LLVolume::generateSilhouetteVertices(), LLVOTextBubble::getGeometry(), LLFace::getGeometryVolume(), LLVolume::lineSegmentIntersect(), LLImagePreviewSculpted::render(), LLVOVolume::updateFaceSize(), and LLVOTextBubble::updateFaceSize().
std::vector<S32> LLVolumeFace::mEdge |
Definition at line 818 of file llvolume.h.
Referenced by createSide(), and LLVolume::generateSilhouetteVertices().