Challenge

Week - 5 - Checking and correcting the Normals

AIM:

  • Write a code to display normal as explained in Lecture 5
  • Create a widget containing two buttons for “reverse normals” and “normal off”
  • Also assign these procedures to keyboard buttons of your choice.
  • check the null case also

OBJECTIVE:

To write a code to display normals of the elements and two buttons to reverse the normals as well as turn off normals display.

CODE:

PROCEDURE:

  • *setnormalsdisplaytpeis used to display the type of visualization whether with direction of normal (0) or color(1)
  • Then the elements displayed in were selected using *createmarkcommand.
  • Normals were displayed for the selected element with color representation using*normalsdisplay elems. 
  • Functions were created for the reversing the normals and select the elements  using proc and these functions are called by assigning the respective buttons. 
  • To reverse the normals of the selected elements *normalsreverse command is used.
  • hm_framework is used to create a separate tab.

OUTPUT:

RESULTS:

  • A code is written to display normal as explained in Lecture 5
  • Widget has created which contains two buttons for "reverse normal & off"
  • Nullcase is created.
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.