This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::vector<double> RS_Math::quadraticSolver(const std::vector<double>& ce) | |
//quadratic solver for | |
// x^2 + ce[0] x + ce[1] =0 | |
{ | |
std::vector<double> ans(0,0.); | |
if(ce.size() != 2) return ans; | |
double discriminant=0.25*ce[0]*ce[0]-ce[1]; | |
/* the discriminant may be very small and negative */ | |
if ( qAbs(discriminant) < 0.0000000001 ){ | |
ans.push_back(-0.5*ce[0] ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool DRW_Text::parseDwg(DRW::Version version, dwgBuffer *buf){ | |
bool ret = DRW_Entity::parseDwg(version, buf); | |
if (!ret) | |
return ret; | |
DBG("\n***************************** parsing text *********************************************\n"); | |
if (version < DRW::AC1015) {//14- | |
basePoint.z = buf->getBitDouble(); /* Elevation BD --- */ | |
basePoint.x = buf->getBitDouble(); /* Insertion pt 2RD 10 */ | |
basePoint.y = buf->getBitDouble(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void dwgBuffer::getExtrusion(DRW_Coord *ext) | |
{ | |
/* | |
Bit Extrusion | |
For R13-R14 this is 3BD. | |
We are asserting that the version is not R13-R14; this values should | |
be read by the user | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void dwgBuffer::getThickness(bool b_R2000_style) | |
{ | |
/* BitThickness | |
For R13-R14, this is a BD. | |
We are asserting that the version is not R13-R14; this value should | |
be read by the user | |
*/ | |
if ( !b_R2000_style ) | |
return getBitDouble(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool DRW_MText::parseDwg(DRW::Version version, dwgBuffer *buf){ | |
bool ret = DRW_Entity::parseDwg(version, buf); | |
if (!ret) | |
return ret; | |
DBG("\n***************************** parsing mtext *********************************************\n"); | |
basePoint.x = buf->getBitDouble(); /* Insertion pt 3BD 10 - First picked point. */ | |
basePoint.y = buf->getBitDouble(); /* (Location relative to text depends */ | |
basePoint.z = buf->getBitDouble(); /* on attachment point (71) */ | |
extPoint.x = buf->getBitDouble(); /* Extrusion 3BD 210 Undocumented; */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool DRW_Vertex::parseDwg2D(DRW::Version version, dwgBuffer *buf){ | |
bool ret = DRW_Entity::parseDwg(version, buf); | |
if (!ret) | |
return ret; | |
DBG("\n***************************** parsing vertex *********************************************\n"); | |
/* Flags EC 70 NOT bit-pair-coded. */ | |
/** @todo investigate what an EC is */ Q_ASSERT(false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/libraries/libdxfrw/src/drw_base.h b/libraries/libdxfrw/src/drw_base.h | |
index 416230c..00a4051 100644 | |
--- a/libraries/libdxfrw/src/drw_base.h | |
+++ b/libraries/libdxfrw/src/drw_base.h | |
@@ -296,6 +296,59 @@ public: | |
} | |
}; | |
+// TNick todo: wrap all elements in this namespace | |
+namespace libdxfrw { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int git_stash_apply( | |
git_repository *repo, | |
size_t index) | |
{ | |
git_reference *stash; | |
const git_reflog_entry *ref_e; | |
git_reflog *reflog = NULL; | |
size_t max; | |
int error; | |
const git_oid * oidw; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8) | |
project(protobufc) | |
include_directories( | |
"${PROJECT_SOURCE_DIR}" | |
) | |
find_package(Protobuf REQUIRED) | |
include_directories(${PROTOBUF_INCLUDE_DIR}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8) | |
project(tinyxml) | |
include_directories( | |
"${PROJECT_SOURCE_DIR}" | |
) | |
add_library (tinyxml | |
tinystr.cpp | |
tinyxml.cpp |
OlderNewer