MCPcopy Create free account
hub / github.com/LAStools/LAStools / set_offset

Method set_offset

LASlib/src/lasreader_ply.cpp:543–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543void LASreaderPLY::set_offset(const F64* offset)
544{
545 if (offset)
546 {
547 if (this->offset == 0) this->offset = new F64[3];
548 this->offset[0] = offset[0];
549 this->offset[1] = offset[1];
550 this->offset[2] = offset[2];
551 orig_x_offset = offset[0];
552 orig_y_offset = offset[1];
553 orig_z_offset = offset[2];
554 }
555 else if (this->offset)
556 {
557 delete [] this->offset;
558 this->offset = 0;
559 }
560}
561
562void LASreaderPLY::add_attribute(I32 attribute_type, const char* name, const char* description, F64 scale, F64 offset, F64 pre_scale, F64 pre_offset, F64 no_data)
563{

Callers 1

openMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected