box3d-face.cpp revision 6b541bbd96323978fe9df3278efad54d895a9f04
#define __SP_3DBOX_FACE_C__
/*
* Face of a 3D box ('perspectivic rectangle')
*
* Authors:
* Maximilian Albert <Anhalter42@gmx.de>
*
* Copyright (C) 2007 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "box3d-face.h"
#include <iostream>
Box3DFace::Box3DFace(SP3DBox *box3d) : dir1 (Box3D::NONE), dir2 (Box3D::NONE), path (NULL), parent_box3d (box3d)
{
for (int i = 0; i < 4; ++i) {
}
}
{
if (!pt_align) {
} else {
if (align_along_PL) {
} else {
corners[2] = Box3D::Line(*pt_align, *SP3DBoxContext::current_perspective->get_vanishing_point(dir1)).closest_to(lr);
}
}
// FIXME: How to handle the case if one of the intersections doesn't exist?
// Maybe set them equal to the corresponding VPs?
// FIXME: Can be made more concise
for (unsigned int i=0; i < shift_count; i++) {
}
}
{
for (int i = 0; i < 4; ++i) {
}
}
{
return corners[i % 4];
}
/**
* Append the curve's path as a child to the given 3D box (since SP3DBox
* is derived from SPGroup, so we can append children to its svg representation)
*/
void Box3DFace::hook_path_to_3dbox()
{
Inkscape::XML::Document *xml_doc = sp_document_repr_doc(SP_EVENT_CONTEXT_DOCUMENT(inkscape_active_event_context()));
}
/**
* Write the path's "d" attribute to the SVG representation.
*/
void Box3DFace::set_path_repr()
{
}
{
}
{
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :