vmp.createsmp
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | vmp.createsmp [2010/06/14 19:00] (current) – created jochen | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== vmp.CreateSMP ====== | ||
| + | |||
| + | ===== Motivation ===== | ||
| + | Please refer to the [[Processing stream - Surface projection|Surface projection]] page for information on why to use this method and a practical example output. | ||
| + | |||
| + | ===== Method reference (' | ||
| + | < | ||
| + | |||
| + | | ||
| + | |||
| + | Input fields: | ||
| + | |||
| + | | ||
| + | | ||
| + | .interp | ||
| + | .ipfrom | ||
| + | .ipstep | ||
| + | .ipto interpolate to P + n * normal vector, default: 1 | ||
| + | .mapsel | ||
| + | .method | ||
| + | .recalcn | ||
| + | |||
| + | | ||
| + | |||
| + | | ||
| + | |||
| + | Note: results slightly differ from BV's results (sampling method)</ | ||
| + | |||
| + | ===== Usage examples ===== | ||
| + | * simple conversion of all maps in a VMP with default parameters: <code matlab vmp_createsmp_example1.m> | ||
| + | vmp = xff(' | ||
| + | srf = xff(' | ||
| + | |||
| + | % convert to SMP | ||
| + | smp = vmp.CreateSMP(srf); | ||
| + | |||
| + | % save as and clear all VMP/SRF objects | ||
| + | smp.SaveAs; | ||
| + | vmp.ClearObject; | ||
| + | srf.ClearObject;</ | ||
| + | * only convert first map with cubic interpolation and sampled just at the vertex: <code matlab vmp_createsmp_example2.m> | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | smp = vmp.CreateSMP(srf, | ||
| + | * recreate normals before sampling: <code matlab vmp_createsmp_example3.m> | ||
vmp.createsmp.txt · Last modified: 2010/06/14 19:00 by jochen
