hypertidy / textures

simple texture plot
GNU General Public License v3.0
12 stars 0 forks source link

early todo #2

Closed mdsumner closed 4 years ago

mdsumner commented 4 years ago
mdsumner commented 4 years ago

Current design is documented in vignette source

but this old copy remains here:

R functions using src/

Rcpp package using quad.h

Wrap quad_ib and quad_vb callable from R.

IntegerVector quad_index_cpp(IntegerVector nx, IntegerVector ny, LogicalVector ydown) 
NumericVector quad_vertex_cpp(IntegerVector nx, IntegerVector ny, LogicalVector ydown) 

Headers

./inst/include/quad/quad.h namespace quad

// returns nx * ny mesh3d$ib (a 4 * (nx * ny) matrix with a column for each quad
IntegerVector quad_ib(IntegerVector nx, IntegerVector ny, LogicalVector ydown);
// returns nx * ny mesh3d$vb[1:2, ] (a 2 * ((nx+1) * (ny+1)) matrix of xy)
NumericVector quad_vb(IntegerVector nx, IntegerVector ny, LogicalVector ydown);
mdsumner commented 4 years ago

Need to

mdsumner commented 4 years ago

Design above now in master with https://github.com/hypertidy/textures/pull/4