# Error: Point2f and Point3f not defined

**URL:** <https://discourse.julialang.org/t/error-point2f-and-point3f-not-defined/83920>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [July 7, 2022, 7:48pm UTC](https://discourse.julialang.org/t/error-point2f-and-point3f-not-defined/83920 "2022-07-07T19:48:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![evandro.schulz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evandro.schulz/32/37761_2.png) [@evandro.schulz](https://discourse.julialang.org/u/evandro.schulz)\
**Post date:** [July 7, 2022, 7:48pm UTC](https://discourse.julialang.org/t/error-point2f-and-point3f-not-defined/83920/1 "2022-07-07T19:48:20Z")

</div>

Hi, I’m trying to use a code that I found in the community. But I cannot run because a error:

```julia
 return (Point3f.(xyzos), Float32.(weights))
ERROR: UndefVarError: Point3f not defined

```

How I can solve one? Mu Julia Version is 1.7.2. I tried to add many packages. But the error continue.

I’m a new Julia’s user.

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 7, 2022, 7:55pm UTC](https://discourse.julialang.org/t/error-point2f-and-point3f-not-defined/83920/2 "2022-07-07T19:55:59Z")

</div>

You need to import some package in order to get the definition of `Point3f`. Please double check the source where you copied the code to find the necessary imports. You may try `using Meshes` or `using GeometryBasics` for example, which are two packages exporting this name.

---

<div class="post-metadata">

**Author:** ![evandro.schulz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evandro.schulz/32/37761_2.png) [@evandro.schulz](https://discourse.julialang.org/u/evandro.schulz)\
**Post date:** [July 7, 2022, 8:07pm UTC](https://discourse.julialang.org/t/error-point2f-and-point3f-not-defined/83920/3 "2022-07-07T20:07:39Z")

</div>

Do you know the packages and the order? I’m tried to add again the package

```julia
Pkg.add("GeometryBasics")
   Resolving package versions...
  No Changes to `C:\Users\EvSchulz\.julia\environments\v1.7\Project.toml`
  No Changes to `C:\Users\EvSchulz\.julia\environments\v1.7\Manifest.toml`
  0 dependencies successfully precompiled in 1 seconds (264 already precompiled)
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

```

but I had a error:

```julia
julia> import Pkg; Pkg.precompile("GeometryBasics")
ERROR: MethodError: no method matching precompile(::String)
Closest candidates are:
  precompile(; kwargs...) at C:\Users\EvSchulz\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\API.jl:1011
  precompile(::Pkg.Types.Context; internal_call, strict, warn_loaded, already_instantiated, kwargs...) at C:\Users\EvSchulz\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\API.jl:1012
Stacktrace:
 [1] top-level scope
   @ REPL[1]:1

```

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 7, 2022, 8:48pm UTC](https://discourse.julialang.org/t/error-point2f-and-point3f-not-defined/83920/4 "2022-07-07T20:48:04Z")

</div>

Hi @evandro.schulz , I think you should learn the basics of the language first before trying to run this example. Please read the Julia manual to learn more about imports and the Pkg manual to learn more about its commands.

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 7, 2022, 8:48pm UTC](https://discourse.julialang.org/t/error-point2f-and-point3f-not-defined/83920/5 "2022-07-07T20:48:58Z")

</div>

Also, consider the New to Julia category for new questions about basic usage.

---

<div class="post-metadata">

**Author:** ![evandro.schulz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evandro.schulz/32/37761_2.png) [@evandro.schulz](https://discourse.julialang.org/u/evandro.schulz)\
**Post date:** [July 11, 2022, 2:16pm UTC](https://discourse.julialang.org/t/error-point2f-and-point3f-not-defined/83920/6 "2022-07-11T14:16:39Z")

</div>

The problem is the package Meshes.  
[https://discourse.julialang.org/t/error-i-cannot-install-package-meshes/84051](https://discourse.julialang.org/t/error-i-cannot-install-package-meshes/84051)
