llface.cpp File Reference

LLFace class implementation. More...

#include "llviewerprecompiledheaders.h"
#include "lldrawable.h"
#include "llface.h"
#include "llviewertextureanim.h"
#include "llviewercontrol.h"
#include "llvolume.h"
#include "m3math.h"
#include "v3color.h"
#include "lldrawpoolsimple.h"
#include "lldrawpoolbump.h"
#include "llgl.h"
#include "lllightconstants.h"
#include "llsky.h"
#include "llviewercamera.h"
#include "llviewerimagelist.h"
#include "llvosky.h"
#include "llvovolume.h"
#include "pipeline.h"

Include dependency graph for llface.cpp:

Go to the source code of this file.

Defines

#define LL_MAX_INDICES_COUNT   1000000
#define DOTVEC(a, b)   (a.mV[0]*b.mV[0] + a.mV[1]*b.mV[1] + a.mV[2]*b.mV[2])

Functions

void planarProjection (LLVector2 &tc, const LLVolumeFace::VertexData &vd, const LLVector3 &mCenter, const LLVector3 &vec)
void sphericalProjection (LLVector2 &tc, const LLVolumeFace::VertexData &vd, const LLVector3 &mCenter, const LLVector3 &vec)
void cylindricalProjection (LLVector2 &tc, const LLVolumeFace::VertexData &vd, const LLVector3 &mCenter, const LLVector3 &vec)
static void xform (LLVector2 &tex_coord, F32 cosAng, F32 sinAng, F32 offS, F32 offT, F32 magS, F32 magT)

Variables

BOOL gPickFaces


Detailed Description

LLFace class implementation.

LicenseInfo
firstyear=2001&license=viewergpl

Copyright (c) 2001-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llface.cpp.


Define Documentation

#define DOTVEC ( a,
b   )     (a.mV[0]*b.mV[0] + a.mV[1]*b.mV[1] + a.mV[2]*b.mV[2])

Definition at line 60 of file llface.cpp.

#define LL_MAX_INDICES_COUNT   1000000

Definition at line 54 of file llface.cpp.

Referenced by LLFace::verify().


Function Documentation

void cylindricalProjection ( LLVector2 tc,
const LLVolumeFace::VertexData vd,
const LLVector3 mCenter,
const LLVector3 vec 
)

Definition at line 112 of file llface.cpp.

Referenced by LLFace::getGeometryVolume().

void planarProjection ( LLVector2 tc,
const LLVolumeFace::VertexData vd,
const LLVector3 mCenter,
const LLVector3 vec 
)

Definition at line 75 of file llface.cpp.

References d, f, LLVolumeFace::VertexData::mNormal, LLVector3::mV, and tut::tc().

Referenced by LLFace::getGeometryVolume().

void sphericalProjection ( LLVector2 tc,
const LLVolumeFace::VertexData vd,
const LLVector3 mCenter,
const LLVector3 vec 
)

Definition at line 101 of file llface.cpp.

Referenced by LLFace::getGeometryVolume().

static void xform ( LLVector2 tex_coord,
F32  cosAng,
F32  sinAng,
F32  offS,
F32  offT,
F32  magS,
F32  magT 
) [static]

Definition at line 699 of file llface.cpp.

References LLVector2::mV, s, and t.

Referenced by LLFace::getGeometryVolume(), LLVOVolume::getWorldMatrix(), LLViewerObject::getWorldMatrix(), and LLVolumeImplFlexible::getWorldMatrix().


Variable Documentation

BOOL gPickFaces

Definition at line 229 of file llviewerwindow.cpp.

Referenced by LLViewerWindow::analyzeHit(), LLToolDragAndDrop::dragOrDrop3D(), LLToolPipette::handleHover(), LLToolPipette::handleMouseDown(), LLToolFace::handleMouseDown(), LLToolPie::handleRightMouseDown(), LLViewerWindow::performPick(), and LLFace::renderForSelect().


Generated on Thu Jul 1 06:10:12 2010 for Second Life Viewer by  doxygen 1.4.7