Mastalt
Mastalt
CC#
Created by Mastalt on 2/7/2024 in #help
Grouping adjacent XYZ points, no idea how to go about this
this is exactly what I needed, thank you very much 🙏
60 replies
CC#
Created by Mastalt on 2/7/2024 in #help
Grouping adjacent XYZ points, no idea how to go about this
Thx a lot, you're a life saver
60 replies
CC#
Created by Mastalt on 2/7/2024 in #help
Grouping adjacent XYZ points, no idea how to go about this
But im on a time crunch lol
60 replies
CC#
Created by Mastalt on 2/7/2024 in #help
Grouping adjacent XYZ points, no idea how to go about this
I need to do it once and inprt to database, then i can just access from there
60 replies
CC#
Created by Mastalt on 2/7/2024 in #help
Grouping adjacent XYZ points, no idea how to go about this
Thats why i wanted to hopefully do a 1 liner with linQ, but if it cant be helped...
60 replies
CC#
Created by Mastalt on 2/7/2024 in #help
Grouping adjacent XYZ points, no idea how to go about this
I have over 2m points 😰
60 replies
CC#
Created by Mastalt on 2/7/2024 in #help
Grouping adjacent XYZ points, no idea how to go about this
yeah i had trouble finding the right explanantion lol
60 replies
CC#
Created by Mastalt on 2/7/2024 in #help
Grouping adjacent XYZ points, no idea how to go about this
but it is adjacent to 1,1 which is adjacent to 2,0
60 replies
CC#
Created by Mastalt on 2/7/2024 in #help
Grouping adjacent XYZ points, no idea how to go about this
hmm I see, I'll try something like that, but then, if lets say 0 1 1 1 0 2 1 2 2 0 They would be adjacent, but more than 1 apart (assuming we start from 0 2) so i would have to do it recursivly?
60 replies
CC#
Created by Mastalt on 2/7/2024 in #help
Grouping adjacent XYZ points, no idea how to go about this
yes, all are whole coordinate (no floating points)
60 replies
CC#
Created by Mastalt on 2/7/2024 in #help
Grouping adjacent XYZ points, no idea how to go about this
yes that is true, but i stil dont know how to group points that way
60 replies
CC#
Created by Mastalt on 2/7/2024 in #help
Grouping adjacent XYZ points, no idea how to go about this
you can think of it as legos, all legos which are connected to one another represent a structure, but 2 set of legos are 2 different structure
60 replies
CC#
Created by Mastalt on 2/7/2024 in #help
Grouping adjacent XYZ points, no idea how to go about this
That's the result I'm trying to get, so any "cluster" of point which are linked to one another result in a single coordinate (can be wherever in the group(middle, bottom, etc.))
60 replies
CC#
Created by Mastalt on 2/7/2024 in #help
Grouping adjacent XYZ points, no idea how to go about this
not only 2, it can stretch out, so a line form 0,0,0 to 0,6,0 would be a single point
60 replies
CC#
Created by Mastalt on 2/5/2024 in #help
MVC App's Post request not reaching
Tbh, I totally forgot that was a thing...
14 replies
CC#
Created by Mastalt on 2/5/2024 in #help
MVC App's Post request not reaching
Update: Whatever I did (I just reverted to my old code) now works, only problem is that I need to desrialize NetTopologySuite json to object in MVC.
14 replies
CC#
Created by Mastalt on 2/5/2024 in #help
MVC App's Post request not reaching
Actually, it doesn't seem to be reaching at all, I have a breakpoint in my API and it is never hit, but when I try to reach the call straight from my browser, then it return 415 (which I'm guessing is normal since I don't send any body when trying this way)
14 replies
CC#
Created by Mastalt on 2/5/2024 in #help
MVC App's Post request not reaching
string jsonData = JsonConvert.SerializeObject(r, Formatting.None, new JsonSerializerSettings() { ReferenceLoopHandling = ReferenceLoopHandling.Ignore});
HttpResponseMessage response = await _client.PostAsync("https://localhost:7145/api/Regions/Post", new StringContent(jsonData, Encoding.UTF8, "application/json"));
string jsonData = JsonConvert.SerializeObject(r, Formatting.None, new JsonSerializerSettings() { ReferenceLoopHandling = ReferenceLoopHandling.Ignore});
HttpResponseMessage response = await _client.PostAsync("https://localhost:7145/api/Regions/Post", new StringContent(jsonData, Encoding.UTF8, "application/json"));
This is my request
14 replies
CC#
Created by Mastalt on 2/5/2024 in #help
MVC App's Post request not reaching
Unsupported Media Type
14 replies
CC#
Created by Mastalt on 2/5/2024 in #help
MVC App's Post request not reaching
Yes I changed that and that resolved the error 405, but now I have some other problems: I am getting an error 415 if i use [FromBody], but [FromForm] returns an error 400, problem is I have no clue how to make a post request with [FromForm]
14 replies