add_point_custom_material_rt#

MotorCAD.add_point_custom_material_rt(radius, theta, region_name, material_name, colour)#

Add a region to the geometry and specify the material.

Note

Do not use this method to add a magnet. Use the add_magnet_region_rt method.

Use degrees for angles.

Parameters:
radiusfloat

Region position for the radial coordinate.

thetafloat

Region position for the angular coordinate in degrees.

region_namestr

Name of the region.

material_namestr

NName of the material. In Motor-CAD, material names can be found in Input Data -> materials. The material type (laminated, solid, or air) is set automatically.

colourstr

VCL color. For more information, see https://wiki.freepascal.org/Colors. The color can be designaed as a hexadecimal value, such as "$008000" or a color name such as "clGreen".