MCPcopy Create free account
hub / github.com/Singular/Singular / getSurfCode

Method getSurfCode

Singular/LIB/surfex/Equation.java:352–386  ·  view source on GitHub ↗
(String polyname, int surface_no, double ang[])

Source from the content-addressed store, hash-verified

350 }
351
352 public String getSurfCode(String polyname, int surface_no, double ang[]) {
353 String str = "";
354 // str += getPolyCode(polyname);
355 String strSurfNo = "";
356 if (surface_no > 1) {
357 strSurfNo = "" + surface_no;
358 }
359 str += "surface" + strSurfNo + " = " + polyname + ";\n";
360 str += "surface" + strSurfNo + "_red = "
361 + (colorButton_o.getBackground().getRed()) + ";\n" + "surface"
362 + strSurfNo + "_green = "
363 + (colorButton_o.getBackground().getGreen()) + ";\n" + "surface"
364 + strSurfNo + "_blue = "
365 + (colorButton_o.getBackground().getBlue()) + ";\n";
366 str += "inside" + strSurfNo + "_red = "
367 + (colorButton_i.getBackground().getRed()) + ";\n" + "inside"
368 + strSurfNo + "_green = "
369 + (colorButton_i.getBackground().getGreen()) + ";\n" + "inside"
370 + strSurfNo + "_blue = "
371 + (colorButton_i.getBackground().getBlue()) + ";\n";
372 if(visType.getSelectedIndex()==1) {
373 str += "transparence" + strSurfNo + " = 100;\n";
374 } else {
375 str += "transparence" + strSurfNo + " = "
376 + (new Integer(optionButtonPane.slider1.getValue())) + ";\n";
377 }
378
379 // str += "surface" + strSurfNo + "=rotate(surface" + strSurfNo + ","
380 // + ang[0] + ",yAxis);";
381 // str += "surface" + strSurfNo + "=rotate(surface" + strSurfNo + ","
382 // + ang[1] + ",xAxis);";
383 // str += "surface" + strSurfNo + "=rotate(surface" + strSurfNo + ","
384 // + ang[2] + ",zAxis);";
385 return (str);
386 }
387
388 public void savesurfCode(PrintWriter pw, String polyname, int surface_no,
389 double ang[]) {

Callers 1

getSurfCode_Part1Method · 0.95

Calls 4

getRedMethod · 0.80
getGreenMethod · 0.80
getBlueMethod · 0.80
getValueMethod · 0.45

Tested by

no test coverage detected