Jump to content
3DCoat Forums

[Script] Surface Remesh by kritskiy


Recommended Posts

Found it on Discord channel

victortan: hey guys, so when im sculpting in surface mode, sometimes i want to remesh, i switch back to voxels then back to surface mode, is there a better way to do this?
victortan: i tend to lose the sharp details that i have to go over the model again
kritskiy: @victortan I made myself a script that resamples a model with a very low density modular factor value in surface mode: running it keeps the details and resamples the model to constant density. Here if you wanna give it a go:
victortan: oh man thanks alot!
victortan: its just run script whenever i need a remesh?
kritskiy: yup
kritskiy: I've assigned it to a keyboard shortcut and spam it to remesh
victortan: nice, just tried it works great so far

resample.cpp

Link to comment
Share on other sites

  • 2 months later...

Isnt it ?

resample.cpp

----------------------------------------------------------------------

----------------------------------------------------------------------

// Resamples a Surface model with low modular density
// Sergey Kritskiy © 2020
// kritskiy.sergey@gmail.com

void main() {
  SetModalDialogCallback("ModalDialogCallbackDecimation");
  cmd("$[Page4]Resample");
}
void ModalDialogCallbackDecimation(){
  cmd("$COMBOBOX_ResamplingQualityrsSmooth");
  SetSliderValue("$ResampleParams::ResamplingScale",1.0000000000000001);
  cmd("$DialogButton#1");/*press Ok*/
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...