public void writeWithGuide(CPNSideEdge guide, int N, float step, OutputMesh mesh, CPNGuideEvaluator evaluator) { this.step = step; requestSize(N + 1); //We should have only one thickness on multisided edge, you know? this.thickness = 1; for (int i = 0; i <= N; i++) { ts[i] = evaluator.EvalAt(i * step, guide); Vector3 dev = evaluator.EvalDev(guide); vertices[i] = evaluator.EvalVertex(guide); uvs[i] = evaluator.EvalUV(guide); normals[i] = evaluator.EvalNormal(guide, dev).normalized; for (int k = 0; k < countP; k++) { properties[k][i] = evaluator.EvalProperty(guide, k); } } }
public void writeWithGuide(CPNSideEdge guide, int N, OutputMesh mesh, CPNGuideEvaluator evaluator) { writeWithGuide(guide, N, 1.0f / N, mesh, evaluator); }