general_equation#
- clip.general_equation(*args, **kwargs) Any #
Clip to a specified quadric equation of the form
Ax^2 + By^2 + Cz^2 + Dxy + Eyz + Fxz + Gx + Hy + Iz = J- Args:
- p0:
‘A’ The coefficient of the x^2 term
- p1:
‘B’ The coefficient of the y^2 term
- p2:
‘C’ The coefficient of the z^2 term
- p3:
‘D’ The coefficient of the xy term
- p4:
‘E’ The coefficient of the yz term
- p5:
‘F’ The coefficient of the xz term
- p6:
‘G’ The coefficient of the x term
- p7:
‘H’ The coefficient of the y term
- p8:
‘I’ The coefficient of the z term
- p9:
‘J’ The constant term
- Examples:
# # Select the parent part # ensight.part.select_begin(1) ensight.clip.begin() # # Create a clip of the form # x^2 + y^2 + z^2 = .5 # ensight.clip.domain("intersect") ensight.clip.tool("general_quadric") ensight.clip.general_equation(1,1,1,0,0,0,0,0,0,.5) ensight.clip.end() ensight.clip.create()
- Returns:
zero on success, non-zero on error