en't in a panel, similar to comments in the Max visual programming environment for audio/video:
2. How do I make colored background panels like the ones in the images below?
Thanks for any help.
…
yes, your explanation sounds a bit freaky.
I post a a sample of a wheel arch (in attachment).
Would be great to see an example of your methods on this surfaces.
A pattern like the BMW Vision would be fine, don't take it to litterally but something like in the image below:
I know that the Trezor's hexagons can be done easily on a single surface like in this tutorial.
But trust me, in the real world that front panel would be at least made from 2 slabs surfaces and one fillet surface.
This rear is probably a better example (is fully covered from hexagons too):
Maybe again the best solution is just to do it on a plane and then morph it on the Brep like this guy does:
https://www.youtube.com/watch?v=WjC6ZGP6OSM
Also for the BMW Vision it does not really look like made from one surface, the more so that there is a feature line passign through.
Would you suggest me any resource where to learn bits of the process that you explained in your previous post?
@Erick: Thanks, it was really interesting to go throught your GH definition, but I don't think it solves my issues. In your example if you had any definition inside your surfaces it would have been gone lost. And if you did not have any definition, I don't see any point in having a Brep representing that topology, a 1 surface would be fine so the problem would not exist.
…
complicated than it seems as I have an event and a subscriber method receiving data from a serial port.
In the code below, the strings received within myReceivedLines appear when connecting with the serial port (when connecttodevice is true). However they disapear when I launch another command (when homeallis true).
As you recommended in your reply, I have added the field called myReceivedLineswithin the class so that I could use the method String.Add() to all the feedback received and commands sent.
Why does the feedback dispear when a command is sent? Is the string going to myReceivedLine disappearing because they happen within a subscriber method or is it related to the DA.SetDataList() method used to assign myReceivedLinesto the output?
Many thanks!
public class SendToPrintComponent : GH_Component { //Fields List<string> myReceivedLines = new List<string>(); SerialPort port; //subscriber method for the port.DataReceived Event private void DataReceivedHandler(object sender, System.IO.Ports.SerialDataReceivedEventArgs e) { SerialPort sp = (SerialPort)sender; while (sp.BytesToRead > 0) { try { myReceivedLines.Add(sp.ReadLine()); } catch (TimeoutException) { break; } } } protected override void SolveInstance(IGH_DataAccess DA) { //Opening the port if (port == null) { string selectedportname = default(string); DA.GetData(1, ref selectedportname); int selectedbaudrate = default(int); DA.GetData(2, ref selectedbaudrate); //Assigning an object to the field within the SolveInstance method() port = new SerialPort(selectedportname, selectedbaudrate, Parity.None, 8, StopBits.One); //Enables the data terminal ready (dtr) signal during serial communication (handshaking) port.DtrEnable = true; port.WriteTimeout = 500; port.ReadTimeout = 500; } //Event Handling Method bool connecttodevice = default(bool); DA.GetData(3, ref connecttodevice); if (connecttodevice == true) { if (!port.IsOpen) { port.DataReceived += new SerialDataReceivedEventHandler(DataReceivedHandler); DA.SetDataList(0, myReceivedLines); port.Open(); } } else if (port.IsOpen) { port.DataReceived -= new SerialDataReceivedEventHandler(DataReceivedHandler); port.Close(); } if (port.IsOpen) { DA.SetData(1, "Port Open"); } //If the port is open do all the rest if (port.IsOpen) { bool homeall = default(bool); DA.GetData(5, ref homeall); //Home all sends all the axis to the origin if (homeall == true) { port.Write("G28" + "\n"); myReceivedLines.Add("G28" + "\n"); DA.SetDataList(2, myReceivedLines); } } else { DA.SetData(1, "Port Closed"); } }}…