Comments (3)
Hello! The point of this ref is to explicitly show that the parameter will be modified inside the method. While it indeed can be omitted, without it you will have to look at the source code to understand what is happening. And the performance overhead (if it even exists) is insignificant. It is not a very common pattern, but it is useful to experss the intent behind the method.
from proceduraltoolkit.
Though then I'd say to rather make the intent clear through naming the function properly like AssignToMesh(Mesh mesh)
or something like that?
However using a ref here prevents using this function in some places which is why I had to rewrite it locally which I don't think is enough to leave out the stylistic ref usage there.
from proceduraltoolkit.
What was your use case? Can you provide an example?
from proceduraltoolkit.
Related Issues (20)
- Implement Circle3.Contains HOT 1
- In the terrain example.. Terrain Mesh? HOT 1
- Add support for 32 bit Mesh index buffers
- Implement Draw.WirePolyline
- Implement Draw.WirePolygon
- Implement Draw.WireCircleSector
- MeshDraft.FlatRevolutionSurface throws ArgumentOutOfRangeException with generateUV = false
- Add a uvmap for MeshDraft.Capsule
- ConfiguratorBase Couldnt not be found and AssignDraftToMeshFilter does not exist in the current context HOT 2
- How to make water waves with transparency HOT 2
- Please release v0.2.3 HOT 4
- Is it possible to create buildings in-editor? (Outside of runtime) HOT 4
- Is there a way to add new set of samples HOT 1
- New uvmap for MeshDraft.Prism HOT 4
- Inverted geometry for procedural buildings HOT 4
- Broken packages HOT 1
- Knapsack with floating point capacity uses only small items HOT 2
- Conical Rooftops HOT 1
- MeshDraft Mesh Constructor HOT 1
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 proceduraltoolkit.