Comments (8)
Alright, that's fair! I think GeometryBasics should just support a convenience constructor for this :)
from geometrybasics.jl.
I've commented over at JuliaArrays/StructArrays.jl#126 (comment). It can be made to work already if one calls the constructor in a slightly different way, and one gets a
StructArray(data::StructArray(::Array{Float32,1}, ::Array{Float32,1}, ::Array{Float32,1}))
from geometrybasics.jl.
it would be useful to have mutable StructArrays of point
Why? Can you give a concrete example?
from geometrybasics.jl.
Transformations with the Proj library come to mind - it accepts separate arrays of x, y, and z, and the most efficient mode of operation is to operate in place. Having 3 arrays of x, y, and z which could be transformed in place would be pretty useful, especially when you get into >500K points.
from geometrybasics.jl.
I thought this was trivially supported, but can't find the correct constructor right now :D Evidence, that this should be made easier & documented...
from geometrybasics.jl.
After talking with @piever it may be a bug:
JuliaArrays/StructArrays.jl#126
from geometrybasics.jl.
Well I tried it a while ago...the issue is that we store the data in a tuple, so StructArrays just makes an array of tuples, which is useless for this. We need to define our own static schema which takes, for example, a Point3f0, and maps it to x, y, and z (or x1, x2 and x3, but that's uglier)...
from geometrybasics.jl.
Yeah, but this is supposed to "just work"... So lets see if we can have this fixed ;)
from geometrybasics.jl.
Related Issues (20)
- Ambiguous NgonFace constructors
- Documentation: GeometryBasics.mesh docs don't match function signature HOT 2
- Turning off deprecation warnings HOT 3
- Intersections of lines with Int parameters crash
- Slicing from previous GeometryTypes HOT 5
- Replicate named access with .{x,y,z,w} from StaticArrays https://github.com/JuliaArrays/StaticArrays.jl/pull/980
- Meshing a single triangle sometimes returns an empty mesh HOT 2
- Trying to plot basic geometry but decompose ordering not helping... HOT 2
- Documentation: Point not documented
- Nonlinear (Curved) Meshes
- `union` with negative width rectangles gives wrong result
- Bug in Line Intersection ( GeometryBasics.intersects ) HOT 12
- broken GeoInterface.convert(GeometryBasics.MultiPolygon) HOT 2
- Polygon constructor adds an interior by default, rather than an exterior as the docs say. HOT 3
- Error with empty metadata
- Would you allow ` HyperSphere(radius::Real, D::Int)` ? HOT 2
- FaceView Documentation, MethodError: no method matching FaceView(::Vector{Point{3, Float32}}, ::Vector{TriangleFace}) HOT 1
- Warnings after fresh compilation with julia 1.10 HOT 1
- Documentation is nonexistent HOT 3
- GeometryBasics.Mesh incorrectly converts quads to triangles HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geometrybasics.jl.