#include <llvolume.h>
Public Member Functions | |
LLPath () | |
virtual | ~LLPath () |
void | genNGon (const LLPathParams ¶ms, S32 sides, F32 offset=0.0f, F32 end_scale=1.f, F32 twist_scale=1.f) |
virtual BOOL | generate (const LLPathParams ¶ms, F32 detail=1.0f, S32 split=0, BOOL is_sculpted=FALSE) |
BOOL | isOpen () const |
F32 | getStep () const |
void | setDirty () |
S32 | getPathLength () const |
void | resizePath (S32 length) |
Public Attributes | |
std::vector< PathPt > | mPath |
Protected Attributes | |
BOOL | mOpen |
S32 | mTotal |
BOOL | mDirty |
F32 | mStep |
Friends | |
std::ostream & | operator<< (std::ostream &s, const LLPath &path) |
Classes | |
struct | PathPt |
Definition at line 707 of file llvolume.h.
LLPath::LLPath | ( | ) | [inline] |
Definition at line 720 of file llvolume.h.
LLPath::~LLPath | ( | ) | [virtual] |
Definition at line 953 of file llvolume.cpp.
void LLPath::genNGon | ( | const LLPathParams & | params, | |
S32 | sides, | |||
F32 | offset = 0.0f , |
|||
F32 | end_scale = 1.f , |
|||
F32 | twist_scale = 1.f | |||
) |
Definition at line 957 of file llvolume.cpp.
References F_PI, LLPathParams::getBegin(), LLPathParams::getEnd(), LLPathParams::getRadiusOffset(), LLPathParams::getRevolutions(), LLPathParams::getScaleX(), LLPathParams::getScaleY(), LLPathParams::getShear(), LLPathParams::getSkew(), LLPathParams::getTaperX(), LLPathParams::getTaperY(), LLPathParams::getTwist(), LLPathParams::getTwistBegin(), lerp(), mOpen, mPath, LLPath::PathPt::mPos, LLPath::PathPt::mRot, LLPath::PathPt::mScale, LLPath::PathPt::mTexT, mTotal, LLVector2::mV, S32, LLQuaternion::setQuat(), LLVector3::setVec(), vector_append(), VX, and VY.
Referenced by generate().
BOOL LLPath::generate | ( | const LLPathParams & | params, | |
F32 | detail = 1.0f , |
|||
S32 | split = 0 , |
|||
BOOL | is_sculpted = FALSE | |||
) | [virtual] |
Reimplemented in LLDynamicPath.
Definition at line 1134 of file llvolume.cpp.
References F_PI, FALSE, genNGon(), LLPathParams::getBegin(), LLPathParams::getBeginScale(), LLPathParams::getCurveType(), LLPathParams::getEnd(), LLPathParams::getEndScale(), LLPathParams::getRevolutions(), LLPathParams::getScale(), LLPathParams::getScaleX(), LLPathParams::getShear(), LLPathParams::getTwist(), LLPathParams::getTwistBegin(), i, lerp(), LL_PCODE_PATH_CIRCLE, LL_PCODE_PATH_CIRCLE2, LL_PCODE_PATH_LINE, LL_PCODE_PATH_TEST, llendl, llfloor(), llinfos, mDirty, MIN_DETAIL_FACES, MIN_LOD, mOpen, mPath, mStep, LLMemType::MTYPE_VOLUME, LLVector2::mV, S32, sculpt_sides(), and TRUE.
Referenced by LLVolume::generate(), and LLVolume::sculpt().
BOOL LLPath::isOpen | ( | ) | const [inline] |
Definition at line 733 of file llvolume.h.
Referenced by LLVolumeFace::createSide(), LLVolume::generate(), LLVolume::generateFaceMask(), LLVolume::getNumTriangleIndices(), LLVolume::getTriangleIndices(), and LLVolume::sculpt().
F32 LLPath::getStep | ( | ) | const [inline] |
Definition at line 734 of file llvolume.h.
void LLPath::setDirty | ( | ) | [inline] |
S32 LLPath::getPathLength | ( | ) | const [inline] |
Definition at line 737 of file llvolume.h.
References S32.
Referenced by LLVolumeImplFlexible::doFlexibleUpdate(), and LLDynamicPath::generate().
void LLPath::resizePath | ( | S32 | length | ) | [inline] |
Definition at line 739 of file llvolume.h.
Referenced by LLDynamicPath::generate(), and LLVolume::resizePath().
std::ostream& operator<< | ( | std::ostream & | s, | |
const LLPath & | path | |||
) | [friend] |
Definition at line 4154 of file llvolume.cpp.
std::vector<PathPt> LLPath::mPath |
Definition at line 744 of file llvolume.h.
Referenced by LLVolumeFace::createCap(), LLVolumeFace::createSide(), LLVolumeFace::createUnCutCubeCap(), LLVolume::createVolumeFaces(), LLVolumeImplFlexible::doFlexibleUpdate(), LLVolume::generate(), LLDynamicPath::generate(), generate(), genNGon(), LLVolume::getNumTriangleIndices(), LLVolume::getTriangleIndices(), LLVolume::sculpt(), LLVolume::sculptGenerateMapVertices(), LLVolume::sculptGeneratePlaceholder(), and LLVolume::sculptGetSurfaceArea().
BOOL LLPath::mOpen [protected] |
Definition at line 747 of file llvolume.h.
Referenced by LLDynamicPath::generate(), generate(), genNGon(), and operator<<().
S32 LLPath::mTotal [protected] |
BOOL LLPath::mDirty [protected] |
F32 LLPath::mStep [protected] |