Jump to content
  • Advertisement
Sign in to follow this  

3ds MAX SDK accessing polygons of the object

This topic is 2569 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[color=#222222][font=arial, sans-serif][size=2]I have a problem with accessing polygons of the object I'm modyfing. I only managed to access faces of the object. Also I would like to delete accessed faces or polygons (if it is possible).[/font][color=#222222][font=arial, sans-serif][size=2]
[/font][color=#222222][font=arial, sans-serif][size=2]here is a piece of code I'm writing[/font][color=#222222][font=arial, sans-serif][size=2]
[/font][color=#222222][font=arial, sans-serif][size=2]

void AlgoritmModel::modifyObject(int proc_of_faces){[/font]

int f = caluculateNrOfFacesToHide(proc_of_faces);
int* indexTab = NULL;


case AlgoritmModel::RANDOM:
srand((unsigned) 1); //TODO:: initialize with a seed
indexTab = getRandomFaces(f, obj->GetMesh().getNumFaces());
for(int i = 0; i<f; ++i){
delete[] indexTab;
case AlgoritmModel::FIXED:
while(f > 0){
}[color=#222222][font=arial, sans-serif][size=2]
[/font][color=#222222][font=arial, sans-serif][size=2]What this function does is hiding procent of faces of the modified object. I need this fuction to delete procent of polygons of the modified object. Thank you for any help.[/font]

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!