Go to Google Code Home
Google SketchUp SkpWriter C++ API Documentation (Labs)

Public Member Functions | Public Attributes

atlast::sketchup::MaterialDescriptor Class Reference

Describes the application of a material to a particular face. More...

#include <ientitycontainer.h>

List of all members.

Public Member Functions

 MaterialDescriptor ()
 Empty constructor. Initializes:

  • pMaterial = NULL
  • nUVs = 0
  • pUVs = NULL
  • pXYZIndices = NULL.

virtual ~MaterialDescriptor ()

Public Attributes

ISketchUpMaterialPtr pMaterial
int nUVs
atlast::geometry::CPoint2d * pUVs
int * pXYZIndices
double pushpins [16]
double projection [3]

Detailed Description

Describes the application of a material to a particular face.


Constructor & Destructor Documentation

virtual atlast::sketchup::MaterialDescriptor::~MaterialDescriptor (  )  [inline, virtual]

Default destructor: does nothing.


Member Data Documentation

Can have 0 to 4 points.

The material

The projection unit vector, if the texture is projected along a vector. Value of (0, 0, 0) indicates a projection vector is not used.

Texture face info pushpins. There are up to four pushins. Each pushpin has 2 pairs of doubles, a uv pair for the pushpin texture coordinate, and an xy pair for the arbitrary axis point which is the origin of Cartesian coordinate system of the uv pair. The pushpins values are laid out in the following manner: pushpin[0] = u0; pushpin[1] = v0; pushpin[2] = x0; pushpin[3] = y0; pushpin[4] = u1; pushpin[5] = v1; pushpin[6] = x1; pushpin[7] = y1; pushpin[8] = u2; pushpin[9] = v2; pushpin[10] = x2; pushpin[11] = y2; pushpin[12] = u3; pushpin[13] = v3; pushpin[14] = x3; pushpin[15] = y3;

atlast::geometry::CPoint2d* atlast::sketchup::MaterialDescriptor::pUVs

Space for the UV points. Must contain at least nUVs items.

Space for the XYZ (model space) points. Must contain at least nUVs items.


©2010 Google - Google Home - About Google