src/libbv/util.cpp
void
bv_sync(struct bview *dest, struct bview *src)
{
    if (!src || !dest)
	return;

    /* Size info */
    dest->gv_i_scale = src->gv_i_scale;
    dest->gv_a_scale = src->gv_a_scale;
    dest->gv_scale = src->gv_scale;
    dest->gv_size = src->gv_size;
    dest->gv_isize = src->gv_isize;
    dest->gv_width = src->gv_width;
    dest->gv_height = src->gv_height;
    dest->gv_base2local = src->gv_base2local;
    dest->gv_rscale = src->gv_rscale;
    dest->gv_sscale = src->gv_sscale;

    /* Camera info */
    dest->gv_perspective = src->gv_perspective;
    VMOVE(dest->gv_aet, src->gv_aet);
    VMOVE(dest->gv_eye_pos, src->gv_eye_pos);
    VMOVE(dest->gv_keypoint, src->gv_keypoint);
    dest->gv_coord = src->gv_coord;
    dest->gv_rotate_about = src->gv_rotate_about;
    MAT_COPY(dest->gv_rotation, src->gv_rotation);
    MAT_COPY(dest->gv_center, src->gv_center);
    MAT_COPY(dest->gv_model2view, src->gv_model2view);
    MAT_COPY(dest->gv_pmodel2view, src->gv_pmodel2view);
    MAT_COPY(dest->gv_view2model, src->gv_view2model);
    MAT_COPY(dest->gv_pmat, src->gv_pmat);
}
// TODO - investigate saveview/loadview logic, see if anything
// makes sense to move here
investigate saveview/loadview logic, see if anything
makes sense to move here
investigate saveview / loadview logic see if anything makes sense to move here
void
bv_sync(struct bview *dest, struct bview *src)
{
    if (!src || !dest)
	return;
    dest->gv_i_scale = src->gv_i_scale;
    dest->gv_a_scale = src->gv_a_scale;
    dest->gv_scale = src->gv_scale;
    dest->gv_size = src->gv_size;
    dest->gv_isize = src->gv_isize;
    dest->gv_width = src->gv_width;
    dest->gv_height = src->gv_height;
    dest->gv_base2local = src->gv_base2local;
    dest->gv_rscale = src->gv_rscale;
    dest->gv_sscale = src->gv_sscale;
    dest->gv_perspective = src->gv_perspective;
    VMOVE(dest->gv_aet, src->gv_aet);
    VMOVE(dest->gv_eye_pos, src->gv_eye_pos);
    VMOVE(dest->gv_keypoint, src->gv_keypoint);
    dest->gv_coord = src->gv_coord;
    dest->gv_rotate_about = src->gv_rotate_about;
    MAT_COPY(dest->gv_rotation, src->gv_rotation);
    MAT_COPY(dest->gv_center, src->gv_center);
    MAT_COPY(dest->gv_model2view, src->gv_model2view);
    MAT_COPY(dest->gv_pmodel2view, src->gv_pmodel2view);
    MAT_COPY(dest->gv_view2model, src->gv_view2model);
    MAT_COPY(dest->gv_pmat, src->gv_pmat);
}
void bv_sync ( struct bview * dest , struct bview * src ) { if ( ! src || ! dest ) return ; dest -> gv_i_scale = src -> gv_i_scale ; dest -> gv_a_scale = src -> gv_a_scale ; dest -> gv_scale = src -> gv_scale ; dest -> gv_size = src -> gv_size ; dest -> gv_isize = src -> gv_isize ; dest -> gv_width = src -> gv_width ; dest -> gv_height = src -> gv_height ; dest -> gv_base2local = src -> gv_base2local ; dest -> gv_rscale = src -> gv_rscale ; dest -> gv_sscale = src -> gv_sscale ; dest -> gv_perspective = src -> gv_perspective ; VMOVE ( dest -> gv_aet , src -> gv_aet ) ; VMOVE ( dest -> gv_eye_pos , src -> gv_eye_pos ) ; VMOVE ( dest -> gv_keypoint , src -> gv_keypoint ) ; dest -> gv_coord = src -> gv_coord ; dest -> gv_rotate_about = src -> gv_rotate_about ; MAT_COPY ( dest -> gv_rotation , src -> gv_rotation ) ; MAT_COPY ( dest -> gv_center , src -> gv_center ) ; MAT_COPY ( dest -> gv_model2view , src -> gv_model2view ) ; MAT_COPY ( dest -> gv_pmodel2view , src -> gv_pmodel2view ) ; MAT_COPY ( dest -> gv_view2model , src -> gv_view2model ) ; MAT_COPY ( dest -> gv_pmat , src -> gv_pmat ) ; }
TODO - investigate saveview/loadview logic, see if anything
makes sense to move here
TODO - investigate saveview / loadview logic see if anything makes sense to move here
/* Size info */ /* Camera info */